mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 处理界面展示相关联的问题
This commit is contained in:
@@ -9,8 +9,11 @@ const global = {
|
||||
// header
|
||||
doc: 'Document',
|
||||
help: 'Help',
|
||||
contact: 'Contact us',
|
||||
contact: 'Contact Us',
|
||||
logout: 'Logout',
|
||||
// system setting
|
||||
sys_set: 'System Setting',
|
||||
lang_set: 'Language Setting',
|
||||
// right key
|
||||
r_edit: 'Edit',
|
||||
r_preview: 'Preview',
|
||||
|
||||
+4
-3
@@ -2,14 +2,15 @@
|
||||
import { lang } from '@/settings/designSetting'
|
||||
import { createI18n } from 'vue-i18n' //引入vue-i18n组件
|
||||
import { getLocalStorage } from '@/utils'
|
||||
import { GO_LANG_SELECT } from '@/settings/storageConst'
|
||||
import { GO_LANG } from '@/settings/storageConst'
|
||||
import { LangStateType } from '@/store/modules/langStore/langStore.d'
|
||||
import zh from './zh/index'
|
||||
import en from './en/index'
|
||||
|
||||
const lang_storage = getLocalStorage(GO_LANG_SELECT)
|
||||
const langStorage: LangStateType = getLocalStorage(GO_LANG)
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: lang_storage || lang,
|
||||
locale: lang,
|
||||
globalInjection: true,
|
||||
messages: {
|
||||
zh: zh,
|
||||
|
||||
@@ -11,6 +11,9 @@ const global = {
|
||||
help: '帮助中心',
|
||||
contact: '联系我们',
|
||||
logout: '退出登录',
|
||||
// 系统设置
|
||||
sys_set: '系统设置',
|
||||
lang_set: '语言设置',
|
||||
// 功能键
|
||||
r_edit: '编辑',
|
||||
r_preview: '预览',
|
||||
|
||||
Reference in New Issue
Block a user