支持标签排序,默认标签放到最后面

This commit is contained in:
fofolee
2024-12-29 11:11:54 +08:00
parent bdffb7d681
commit 4d6b699b7d
2 changed files with 114 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ export default {
},
data() {
return {
currentTag: "默认",
currentTag: "",
lastTag: "",
activatedQuickCommandFeatureCodes: [],
activatedQuickPanels: [],
@@ -205,13 +205,11 @@ export default {
this.getAllQuickCommandTags();
},
getAllQuickCommandTags() {
// 获取所有标签
this.allQuickCommandTags = _.union(
...Object.values(this.allQuickCommands).map((x) => x.tags)
)
.concat([
"未分类",
// "来自分享"
])
.concat(["未分类"])
.filter((x) => x);
},
// 监听命令变更事件