From bca78431ec25ca267f01518135059617ff649c62 Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 15 Apr 2022 13:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E4=B8=AD=E5=BF=83=2050%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ConfigurationPage.vue | 10 ++- src/pages/ShareCenterPage.vue | 126 +++++++++++++++++++------------- 2 files changed, 83 insertions(+), 53 deletions(-) diff --git a/src/pages/ConfigurationPage.vue b/src/pages/ConfigurationPage.vue index 4ddb2b2..3b0619a 100644 --- a/src/pages/ConfigurationPage.vue +++ b/src/pages/ConfigurationPage.vue @@ -287,12 +287,18 @@ export default { }, // 所有命令对应的标签 allQuickCommandTags() { - return _.union( + let allTags = _.union( ..._.concat( "默认", Object.values(this.allQuickCommands).map((x) => x.tags) ) - ).concat(["未分类", "搜索结果"]); + ).concat(["未分类"]); + if (allTags.includes("来自分享")) { + _.pull(allTags, "来自分享"); + allTags.push("来自分享"); + } + allTags.push("搜索结果"); + return allTags; }, // 标签栏宽度 tabBarWidth() { diff --git a/src/pages/ShareCenterPage.vue b/src/pages/ShareCenterPage.vue index 280a587..609561c 100644 --- a/src/pages/ShareCenterPage.vue +++ b/src/pages/ShareCenterPage.vue @@ -4,11 +4,8 @@
- + {{ - command?.title + commands[count - 1]?.features?.explain }} - {{ command?.user }} + {{ commands[count - 1]?.authorName }} {{ command?.updateTime }}{{ commands[count - 1]?.updateTime }} {{ command?.program }}{{ commands[count - 1]?.program }} @@ -58,13 +61,24 @@ + > + 该命令不支持当前操作系统!但你仍可以导入它 + @@ -80,64 +94,74 @@