From e4b8ff0a64e34a209f244eadd82fb5efa47df6c6 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 9 Dec 2024 10:43:00 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=AE=A2=E9=98=85=E5=92=8C?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=94=AF=E6=8C=81=E6=89=8B=E5=8A=A8=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/@core/components/ThemeSwitcher.vue | 4 +- src/components/cards/PluginAppCard.vue | 148 +++++++------ src/components/cards/PluginCard.vue | 256 ++++++++++++---------- src/components/cards/SubscribeCard.vue | 254 ++++++++++----------- src/views/plugin/PluginCardListView.vue | 72 +++++- src/views/subscribe/SubscribeListView.vue | 90 ++++++-- 6 files changed, 480 insertions(+), 344 deletions(-) diff --git a/src/@core/components/ThemeSwitcher.vue b/src/@core/components/ThemeSwitcher.vue index e8f3af18..f35d4fa3 100644 --- a/src/@core/components/ThemeSwitcher.vue +++ b/src/@core/components/ThemeSwitcher.vue @@ -115,7 +115,7 @@ function changeTheme(theme: string) { // 保存主题到服务端 try { api.post('/user/config/Layout', { - theme: nextTheme + theme: nextTheme, }) } catch (e) { console.error('保存主题到服务端失败') @@ -176,7 +176,7 @@ async function saveCustomCSS() { }, }) - if (result.success) $toast.success('自定义CSS保存成功!') + if (result.success) $toast.success('自定义CSS保存成功,请刷新页面生效!') } catch (e) { console.error('保存自定义 CSS 到服务端失败') } diff --git a/src/components/cards/PluginAppCard.vue b/src/components/cards/PluginAppCard.vue index ab7572c1..22550530 100644 --- a/src/components/cards/PluginAppCard.vue +++ b/src/components/cards/PluginAppCard.vue @@ -149,80 +149,82 @@ const dropdownItems = ref([ diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index 6dcf9749..c33cc2c9 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -390,130 +390,146 @@ watch(