限制保留标签

This commit is contained in:
fofolee 2022-05-01 11:49:46 +08:00
parent 83c277363c
commit bd3b3270e9
2 changed files with 9 additions and 1 deletions

View File

@ -292,7 +292,8 @@ export default {
this.configurationPage.allQuickCommandTags, this.configurationPage.allQuickCommandTags,
"默认", "默认",
"未分类", "未分类",
"搜索结果" "搜索结果",
"来自分享"
); );
}, },
}, },

View File

@ -139,6 +139,7 @@
use-chips use-chips
multiple multiple
new-value-mode="add-unique" new-value-mode="add-unique"
@new-value="tagVerify"
input-debounce="0" input-debounce="0"
:options="allQuickCommandTags" :options="allQuickCommandTags"
> >
@ -373,6 +374,12 @@ export default {
} }
return data; return data;
}, },
tagVerify(val, done) {
if (["默认", "未分类", "搜索结果", "来自分享"].includes(val)) {
return done(`_${val}_`);
}
done(val);
},
// //
platformVerify() { platformVerify() {
this.currentCommand.features.platform?.length > 0 || this.currentCommand.features.platform?.length > 0 ||