From bc79b661db2defa36bdfadb13b1038e906e36d7e Mon Sep 17 00:00:00 2001
From: Sun <95302870@qq.com>
Date: Mon, 8 Jan 2024 13:56:45 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E8=A7=A3=E5=86=B3=E4=BE=9D?=
 =?UTF-8?q?=E8=B5=96=E5=BE=AA=E7=8E=AF=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/locales/index.ts | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/locales/index.ts b/src/locales/index.ts
index ed81036..5571134 100644
--- a/src/locales/index.ts
+++ b/src/locales/index.ts
@@ -5,16 +5,13 @@ import enUS from './en-US'
 import zhCN from './zh-CN'
 // import zhTW from './zh-TW'
 // import ruRU from './ru-RU'
-import { useAppStoreWithOut } from '@/store/modules/app'
-import type { Language } from '@/store/modules/app/helper'
 
-const appStore = useAppStoreWithOut()
 
-const defaultLocale = appStore.language || 'zh-CN'
+const defaultLocale = 'zh-CN'
 
 const i18n = createI18n({
   locale: defaultLocale,
-  fallbackLocale: 'en-US',
+  fallbackLocale: defaultLocale,
   allowComposition: true,
   messages: {
     'en-US': enUS,
@@ -27,7 +24,9 @@ const i18n = createI18n({
 
 export const t = i18n.global.t
 
-export function setLocale(locale: Language) {
+// 避免循环依赖appstore(authstore)language此处暂时先使用any
+// 后面有时间调整
+export function setLocale(locale: any) {
   i18n.global.locale = locale
 }