diff --git a/auto-imports.d.ts b/auto-imports.d.ts index f6f63aa..d90ac97 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,7 +6,6 @@ // biome-ignore lint: disable export {} declare global { - const APP_THEME_MODES: typeof import('./src/stores/app-store')['APP_THEME_MODES'] const ConfirmationService: typeof import('utils4u/primevue')['ConfirmationService'] const DialogService: typeof import('utils4u/primevue')['DialogService'] const EffectScope: typeof import('vue')['EffectScope'] @@ -141,7 +140,7 @@ declare global { const until: typeof import('@vueuse/core')['until'] const useActiveElement: typeof import('@vueuse/core')['useActiveElement'] const useAnimate: typeof import('@vueuse/core')['useAnimate'] - const useAppStore: typeof import('./src/stores/app-store')['useAppStore'] + const useAppStore: typeof import('./src/stores/app-store-auto-imports')['useAppStore'] const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference'] const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery'] const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter'] @@ -340,8 +339,8 @@ declare global { export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore - export type { AppThemeMode } from './src/stores/app-store' - import('./src/stores/app-store') + export type { AppThemeMode } from './src/stores/app-store-auto-imports' + import('./src/stores/app-store-auto-imports') } // for vue template auto import @@ -349,7 +348,6 @@ import { UnwrapRef } from 'vue' declare module 'vue' { interface GlobalComponents {} interface ComponentCustomProperties { - readonly APP_THEME_MODES: UnwrapRef readonly ConfirmationService: UnwrapRef readonly DialogService: UnwrapRef readonly EffectScope: UnwrapRef @@ -484,7 +482,7 @@ declare module 'vue' { readonly until: UnwrapRef readonly useActiveElement: UnwrapRef readonly useAnimate: UnwrapRef - readonly useAppStore: UnwrapRef + readonly useAppStore: UnwrapRef readonly useArrayDifference: UnwrapRef readonly useArrayEvery: UnwrapRef readonly useArrayFilter: UnwrapRef diff --git a/src/layouts/base-layout/base-layout-header/components/ThemeSwitchButton.vue b/src/layouts/base-layout/base-layout-header/components/ThemeSwitchButton.vue index 216424d..bc05df4 100644 --- a/src/layouts/base-layout/base-layout-header/components/ThemeSwitchButton.vue +++ b/src/layouts/base-layout/base-layout-header/components/ThemeSwitchButton.vue @@ -4,7 +4,7 @@ const appStore = useAppStore(); const themeLabels: Record = { light: '浅色', dark: '深色', - system: '跟随系统', + auto: '跟随系统', }; @@ -12,7 +12,7 @@ const themeLabels: Record = { {{ themeLabels[appStore.themeMode] }}