mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改本地存储变量名
This commit is contained in:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user