mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
限制保留标签
This commit is contained in:
parent
83c277363c
commit
bd3b3270e9
@ -292,7 +292,8 @@ export default {
|
||||
this.configurationPage.allQuickCommandTags,
|
||||
"默认",
|
||||
"未分类",
|
||||
"搜索结果"
|
||||
"搜索结果",
|
||||
"来自分享"
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -139,6 +139,7 @@
|
||||
use-chips
|
||||
multiple
|
||||
new-value-mode="add-unique"
|
||||
@new-value="tagVerify"
|
||||
input-debounce="0"
|
||||
:options="allQuickCommandTags"
|
||||
>
|
||||
@ -373,6 +374,12 @@ export default {
|
||||
}
|
||||
return data;
|
||||
},
|
||||
tagVerify(val, done) {
|
||||
if (["默认", "未分类", "搜索结果", "来自分享"].includes(val)) {
|
||||
return done(`_${val}_`);
|
||||
}
|
||||
done(val);
|
||||
},
|
||||
// 平台为空自动补充
|
||||
platformVerify() {
|
||||
this.currentCommand.features.platform?.length > 0 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user