From cfe1653ae4008728cc6cea9ca8f76298ff477595 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 23 Jan 2024 13:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=9D=A5=E8=87=AA=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandEditor.vue | 2 +- src/components/CommandSideBar.vue | 9 ++++++++- src/pages/ConfigurationPage.vue | 9 ++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index b2c733f..2614db6 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -291,7 +291,7 @@ export default { "默认", "未分类", "搜索结果", - "来自分享" + // "来自分享" ); }, }, diff --git a/src/components/CommandSideBar.vue b/src/components/CommandSideBar.vue index db741a0..bf489bd 100644 --- a/src/components/CommandSideBar.vue +++ b/src/components/CommandSideBar.vue @@ -431,7 +431,14 @@ export default { return data; }, tagVerify(val, done) { - if (["默认", "未分类", "搜索结果", "来自分享"].includes(val)) { + if ( + [ + "默认", + "未分类", + "搜索结果", + // "来自分享" + ].includes(val) + ) { return done(`_${val}_`); } done(val); diff --git a/src/pages/ConfigurationPage.vue b/src/pages/ConfigurationPage.vue index 1345b15..65fefb6 100644 --- a/src/pages/ConfigurationPage.vue +++ b/src/pages/ConfigurationPage.vue @@ -273,8 +273,8 @@ export default { switch (this.currentTag) { case "未分类": return commands.filter((cmd) => !cmd.tags || cmd.tags.length === 0); - case "来自分享": - return commands.filter((cmd) => cmd.fromShare); + // case "来自分享": + // return commands.filter((cmd) => cmd.fromShare); case "搜索结果": if (this.commandSearchKeyword?.length < 2) return; let searchResult = []; @@ -357,7 +357,10 @@ export default { this.allQuickCommandTags = _.union( ...Object.values(this.allQuickCommands).map((x) => x.tags) ) - .concat(["未分类", "来自分享"]) + .concat([ + "未分类", + // "来自分享" + ]) .filter((x) => x); }, // 监听命令变更事件