From 4b645bb9162be655bbf99fc466879862dec1c40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 5 Nov 2025 13:41:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(auto-imports):=20=E6=B7=BB=E5=8A=A0=20rout?= =?UTF-8?q?eI18nT=20=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 2 ++ src/stores/app-store-auto-imports.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index beab76e..9eacf80 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -112,6 +112,7 @@ declare global { const resolveRef: typeof import('@vueuse/core')['resolveRef'] const resolveUnref: typeof import('@vueuse/core')['resolveUnref'] const routeI18nInstance: typeof import('./src/locales-utils/i18n-auto-imports')['routeI18nInstance'] + const routeI18nT: typeof import('./src/locales-utils/i18n-auto-imports')['routeI18nT'] const setActivePinia: typeof import('pinia')['setActivePinia'] const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix'] const setViewportCSSVars: typeof import('utils4u/browser')['setViewportCSSVars'] @@ -457,6 +458,7 @@ declare module 'vue' { readonly resolveRef: UnwrapRef readonly resolveUnref: UnwrapRef readonly routeI18nInstance: UnwrapRef + readonly routeI18nT: UnwrapRef readonly setActivePinia: UnwrapRef readonly setMapStoreSuffix: UnwrapRef readonly setViewportCSSVars: UnwrapRef diff --git a/src/stores/app-store-auto-imports.ts b/src/stores/app-store-auto-imports.ts index bd53357..309986b 100644 --- a/src/stores/app-store-auto-imports.ts +++ b/src/stores/app-store-auto-imports.ts @@ -5,6 +5,7 @@ import { computed } from 'vue'; // >>>>> // https://vueuse.org/core/useColorMode/#advanced-usage const { system, store: themeMode } = useColorMode({ + selector: 'html', modes: { light: '', dark: 'app-dark', auto: '' }, disableTransition: false, });