From bd3b3270e982766c325a9b22c8fd5720bfb258c2 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 1 May 2022 11:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E4=BF=9D=E7=95=99=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandEditor.vue | 3 ++- src/components/CommandSideBar.vue | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 ||