diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index 7c95e7c..63ef252 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -292,7 +292,8 @@ export default { this.configurationPage.allQuickCommandTags, "默认", "未分类", - "搜索结果" + "搜索结果", + "来自分享" ); }, }, diff --git a/src/components/CommandSideBar.vue b/src/components/CommandSideBar.vue index 6c04a51..9a7e4a0 100644 --- a/src/components/CommandSideBar.vue +++ b/src/components/CommandSideBar.vue @@ -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 ||