fix: 修改TS报错问题,抽离水印文案

This commit is contained in:
奔跑的面条
2022-04-07 14:20:18 +08:00
parent 34177e00af
commit 079fc2bdb9
20 changed files with 40 additions and 40 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import type { WritableComputedRef } from 'vue'
import { defineStore } from 'pinia'
import { lang } from '@/settings/designSetting'
import { LangStateType } from './langStore.d'
@@ -28,7 +29,7 @@ export const useLangStore = defineStore({
changeLang(lang: LangEnum): void {
if (this.lang === lang) return
this.lang = lang
i18n.global.locale = lang
i18n.global.locale = (lang as unknown) as WritableComputedRef<LangEnum>
setLocalStorage(GO_LANG_STORE, this.$state)
if (settingStore.getChangeLangReload) {