From a95fbd6a549ffeedaf3dc6b85f1981974187f127 Mon Sep 17 00:00:00 2001
From: ray <1490493387@qq.com>
Date: Wed, 30 Jul 2025 00:06:50 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=BB=E9=A2=98=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E9=87=8D=E6=9E=84=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components.d.ts | 1 +
src/App.vue | 5 -
src/composables/types/theme.ts | 46 ++++
src/composables/useTheme.ts | 292 ++++++++++--------------
src/constants/index.ts | 13 +-
src/constants/storage.constant.ts | 11 -
src/layouts/default.vue | 6 +-
src/layouts/tabbar.vue | 6 +-
src/pages/login/index.vue | 6 +-
src/pages/mine/index.vue | 5 +-
src/pages/mine/settings/theme/index.vue | 49 +++-
src/types/auto-imports.d.ts | 3 +-
12 files changed, 234 insertions(+), 209 deletions(-)
create mode 100644 src/composables/types/theme.ts
delete mode 100644 src/constants/storage.constant.ts
diff --git a/components.d.ts b/components.d.ts
index 2e2ba31..70bedb6 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -35,6 +35,7 @@ declare module 'vue' {
WdPopup: typeof import('wot-design-uni/components/wd-popup/wd-popup.vue')['default']
WdRadio: typeof import('wot-design-uni/components/wd-radio/wd-radio.vue')['default']
WdRadioGroup: typeof import('wot-design-uni/components/wd-radio-group/wd-radio-group.vue')['default']
+ WdStatusTip: typeof import('wot-design-uni/components/wd-status-tip/wd-status-tip.vue')['default']
WdSwiper: typeof import('wot-design-uni/components/wd-swiper/wd-swiper.vue')['default']
WdSwitch: typeof import('wot-design-uni/components/wd-switch/wd-switch.vue')['default']
WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default']
diff --git a/src/App.vue b/src/App.vue
index bcf15fa..334099a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,13 +1,8 @@