diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 4ad6055..3eaa6f5 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -59,6 +59,7 @@ declare global { const isReadonly: typeof import('vue')['isReadonly'] const isRef: typeof import('vue')['isRef'] const isShallow: typeof import('vue')['isShallow'] + const locales4RouteMessages: typeof import('./src/locales-4-route/messages-auto-imports')['locales4RouteMessages'] const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable'] const mapActions: typeof import('pinia')['mapActions'] const mapGetters: typeof import('pinia')['mapGetters'] @@ -396,6 +397,7 @@ declare module 'vue' { readonly isReadonly: UnwrapRef readonly isRef: UnwrapRef readonly isShallow: UnwrapRef + readonly locales4RouteMessages: UnwrapRef readonly makeDestructurable: UnwrapRef readonly mapActions: UnwrapRef readonly mapGetters: UnwrapRef diff --git a/src/composables/useMetaLayoutsMenuOptions.tsx b/src/composables/useMetaLayoutsMenuOptions.tsx index 4b7b0b8..10b9361 100644 --- a/src/composables/useMetaLayoutsMenuOptions.tsx +++ b/src/composables/useMetaLayoutsMenuOptions.tsx @@ -1,6 +1,3 @@ -import enUS from '@/pages/_page-title-locales/en-US'; -import zhCN from '@/pages/_page-title-locales/zh-CN'; - import type { Ref } from 'vue'; import type { MenuInst, MenuOption } from 'naive-ui'; import { createGetRoutes } from 'virtual:meta-layouts'; @@ -120,10 +117,7 @@ export function useMetaLayoutsNMenuOptions({ menuInstRef }: { menuInstRef: Ref