去掉来自分享标签

This commit is contained in:
fofolee
2024-01-23 13:40:07 +08:00
parent 6fd5b87a33
commit cfe1653ae4
3 changed files with 15 additions and 5 deletions

View File

@@ -273,8 +273,8 @@ export default {
switch (this.currentTag) {
case "未分类":
return commands.filter((cmd) => !cmd.tags || cmd.tags.length === 0);
case "来自分享":
return commands.filter((cmd) => cmd.fromShare);
// case "来自分享":
// return commands.filter((cmd) => cmd.fromShare);
case "搜索结果":
if (this.commandSearchKeyword?.length < 2) return;
let searchResult = [];
@@ -357,7 +357,10 @@ export default {
this.allQuickCommandTags = _.union(
...Object.values(this.allQuickCommands).map((x) => x.tags)
)
.concat(["未分类", "来自分享"])
.concat([
"未分类",
// "来自分享"
])
.filter((x) => x);
},
// 监听命令变更事件