diff --git a/components.d.ts b/components.d.ts index 255c169..ca04995 100644 --- a/components.d.ts +++ b/components.d.ts @@ -24,8 +24,8 @@ declare module 'vue' { WdCollapse: typeof import('wot-design-uni/components/wd-collapse/wd-collapse.vue')['default'] WdCollapseItem: typeof import('wot-design-uni/components/wd-collapse-item/wd-collapse-item.vue')['default'] WdConfigProvider: typeof import('wot-design-uni/components/wd-config-provider/wd-config-provider.vue')['default'] - WdDivider: typeof import('wot-design-uni/components/wd-divider/wd-divider.vue')['default'] WdForm: typeof import('wot-design-uni/components/wd-form/wd-form.vue')['default'] + WdFormItem: typeof import('wot-design-uni/components/wd-form-item/wd-form-item.vue')['default'] WdGrid: typeof import('wot-design-uni/components/wd-grid/wd-grid.vue')['default'] WdGridItem: typeof import('wot-design-uni/components/wd-grid-item/wd-grid-item.vue')['default'] WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default'] @@ -46,6 +46,9 @@ declare module 'vue' { WdTabbar: typeof import('wot-design-uni/components/wd-tabbar/wd-tabbar.vue')['default'] WdTabbarItem: typeof import('wot-design-uni/components/wd-tabbar-item/wd-tabbar-item.vue')['default'] WdTag: typeof import('wot-design-uni/components/wd-tag/wd-tag.vue')['default'] + WdText: typeof import('wot-design-uni/components/wd-text/wd-text.vue')['default'] + WdTextarea: typeof import('wot-design-uni/components/wd-textarea/wd-textarea.vue')['default'] WdToast: typeof import('wot-design-uni/components/wd-toast/wd-toast.vue')['default'] + WdUpload: typeof import('wot-design-uni/components/wd-upload/wd-upload.vue')['default'] } } diff --git a/package.json b/package.json index 6958544..a505ec4 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002", "@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002", "@stomp/stompjs": "^7.1.1", - "@uni-helper/uni-use": "^0.19.14", + "@uni-helper/uni-use": "^0.19.15", "@vueuse/core": "9.13.0", "pinia": "^2.2.2", "vue": "^3.5.13", diff --git a/src/composables/useTheme.ts b/src/composables/useTheme.ts index 13dcab7..d8f1c50 100644 --- a/src/composables/useTheme.ts +++ b/src/composables/useTheme.ts @@ -1,6 +1,6 @@ import type { ThemeColorOption, ThemeMode } from "@/composables/types/theme"; import { themeColorOptions } from "@/composables/types/theme"; -import { useThemeStore } from "@/store/modules/theme.store"; +import { useThemeStore } from "@/store"; export function useTheme() { const store = useThemeStore(); diff --git a/src/constants/index.ts b/src/constants/index.ts index dba2ded..0973773 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -13,3 +13,7 @@ export const REFRESH_TOKEN_KEY = "refresh_token"; // 📊 用户缓存相关 export const USER_INFO_KEY = "user_info"; + +// 🎨 主题相关 +export const THEME_MODE_KEY = "app-theme"; +export const THEME_COLOR_KEY = "app-theme-color"; diff --git a/src/pages.json b/src/pages.json index 8db85b2..8b29041 100644 --- a/src/pages.json +++ b/src/pages.json @@ -12,6 +12,7 @@ { "path": "pages/login/index", "type": "page", + "name": "login", "style": { "navigationStyle": "custom" } diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 254f891..8a3b281 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -105,10 +105,17 @@ + +{ + "name": "login", + "style": { "navigationStyle": "custom" } +} + +