fix: 修改本地存储变量名

This commit is contained in:
MTrun
2022-01-08 14:27:56 +08:00
parent 8c64abbe51
commit 9c74c26219
12 changed files with 79 additions and 71 deletions
+3 -3
View File
@@ -2,15 +2,15 @@
import { lang } from '@/settings/designSetting'
import { createI18n } from 'vue-i18n' //引入vue-i18n组件
import { getLocalStorage } from '@/utils'
import { GO_LANG } from '@/settings/storageConst'
import { StorageEnum }from '@/enums/storageEnum'
import { LangStateType } from '@/store/modules/langStore/langStore.d'
import zh from './zh/index'
import en from './en/index'
const langStorage: LangStateType = getLocalStorage(GO_LANG)
const langStorage: LangStateType = getLocalStorage(StorageEnum.GO_LANG_STORE)
const i18n = createI18n({
locale: lang,
locale: langStorage.lang || lang,
globalInjection: true,
messages: {
zh: zh,