mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
去掉来自分享标签
This commit is contained in:
parent
6fd5b87a33
commit
cfe1653ae4
@ -291,7 +291,7 @@ export default {
|
|||||||
"默认",
|
"默认",
|
||||||
"未分类",
|
"未分类",
|
||||||
"搜索结果",
|
"搜索结果",
|
||||||
"来自分享"
|
// "来自分享"
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -431,7 +431,14 @@ export default {
|
|||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
tagVerify(val, done) {
|
tagVerify(val, done) {
|
||||||
if (["默认", "未分类", "搜索结果", "来自分享"].includes(val)) {
|
if (
|
||||||
|
[
|
||||||
|
"默认",
|
||||||
|
"未分类",
|
||||||
|
"搜索结果",
|
||||||
|
// "来自分享"
|
||||||
|
].includes(val)
|
||||||
|
) {
|
||||||
return done(`_${val}_`);
|
return done(`_${val}_`);
|
||||||
}
|
}
|
||||||
done(val);
|
done(val);
|
||||||
|
@ -273,8 +273,8 @@ export default {
|
|||||||
switch (this.currentTag) {
|
switch (this.currentTag) {
|
||||||
case "未分类":
|
case "未分类":
|
||||||
return commands.filter((cmd) => !cmd.tags || cmd.tags.length === 0);
|
return commands.filter((cmd) => !cmd.tags || cmd.tags.length === 0);
|
||||||
case "来自分享":
|
// case "来自分享":
|
||||||
return commands.filter((cmd) => cmd.fromShare);
|
// return commands.filter((cmd) => cmd.fromShare);
|
||||||
case "搜索结果":
|
case "搜索结果":
|
||||||
if (this.commandSearchKeyword?.length < 2) return;
|
if (this.commandSearchKeyword?.length < 2) return;
|
||||||
let searchResult = [];
|
let searchResult = [];
|
||||||
@ -357,7 +357,10 @@ export default {
|
|||||||
this.allQuickCommandTags = _.union(
|
this.allQuickCommandTags = _.union(
|
||||||
...Object.values(this.allQuickCommands).map((x) => x.tags)
|
...Object.values(this.allQuickCommands).map((x) => x.tags)
|
||||||
)
|
)
|
||||||
.concat(["未分类", "来自分享"])
|
.concat([
|
||||||
|
"未分类",
|
||||||
|
// "来自分享"
|
||||||
|
])
|
||||||
.filter((x) => x);
|
.filter((x) => x);
|
||||||
},
|
},
|
||||||
// 监听命令变更事件
|
// 监听命令变更事件
|
||||||
|
Loading…
x
Reference in New Issue
Block a user