From 38a49d68e528059b63c7828d648807e0ee55addd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 7 Apr 2022 14:52:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/langStore/langStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/langStore/langStore.ts b/src/store/modules/langStore/langStore.ts index 6ac68d6d..2c1fd2b9 100644 --- a/src/store/modules/langStore/langStore.ts +++ b/src/store/modules/langStore/langStore.ts @@ -29,7 +29,7 @@ export const useLangStore = defineStore({ changeLang(lang: LangEnum): void { if (this.lang === lang) return this.lang = lang - i18n.global.locale = (lang as unknown) as WritableComputedRef + i18n.global.locale = lang setLocalStorage(GO_LANG_STORE, this.$state) if (settingStore.getChangeLangReload) {