Cloudreve icon indicating copy to clipboard operation
Cloudreve copied to clipboard

标签能否单独抽离出一个配置管理页,做成与文件多对多的关系

Open rokukoo opened this issue 2 months ago • 2 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

起因是我在对文件进行标签管理的时候,创建标签时打错了一个字,但是没有找到删除按钮,于是翻了下 issue 和 discussion,发现了这篇 #2454 于是我就去看了下 sqlite 数据库,想直接删库处理,发现在 metadata 表里是直接一个文件一个metadata的存储方式,而且在前端刷新了本地存储以后,标签管理 功能的很多标签都不见了,这会导致后期基于标签的文件管理非常灾难,比如某个标签重命名以后,实际上只有这一个文件的标签改了,但实际上用户应该想要的是全局生效的

Describe the solution you'd like A clear and concise description of what you want to happen.

  1. 抽离出一个标签的单独的配置功能页,方便后续管理
  2. 基于标签做一个接口,能够让前端直接获取,而不是存在本地

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

希望能够完善标签管理功能,这对文件管理真的很有用,特别是在资源整理时,标签能帮助极大缩小查找范围

Additional context Add any other context or screenshots about the feature request here.

对文件进行标签管理

rokukoo avatar Oct 10 '25 14:10 rokukoo

标签存在浏览器本地的 LocalStorage,强迫症的话可以清一下缓存。 See https://github.com/cloudreve/cloudreve/issues/2187.

YUDONGLING avatar Oct 10 '25 14:10 YUDONGLING

那标签管理功能呢,比如我想重命名一个标签,我实际上是希望其他标签也能全局生效

rokukoo avatar Oct 10 '25 14:10 rokukoo