Browse Source

优化暂存

noToken
安虹睿 1 year ago
parent
commit
2cf431f744
  1. 3
      PC/InterFace.Dash/src/components/umyTable/index.vue
  2. 5
      PC/InterFace.Dash/src/lang/index.js

3
PC/InterFace.Dash/src/components/umyTable/index.vue

@ -218,7 +218,8 @@
height="500" height="500"
> >
<el-table-column <el-table-column
v-for="(head) in showJsonHeader" v-for="(head,h_key) in showJsonHeader"
:key="h_key"
min-width="120" min-width="120"
> >
<template #header> <template #header>

5
PC/InterFace.Dash/src/lang/index.js

@ -22,7 +22,7 @@ const messages = {
...enLocale, ...enLocale,
} }
} }
console.log(localStorage.getItem("browserLanguage"))
const i18n = new VueI18n({ const i18n = new VueI18n({
messages, messages,
fallbackLocale: "zh-CN", // 匹配不到时默认的语言 fallbackLocale: "zh-CN", // 匹配不到时默认的语言
@ -46,4 +46,5 @@ const translate = (localeKey) => {
return localeKey return localeKey
} }
export { i18n, messages, translate } export { messages, translate }
export default i18n
Loading…
Cancel
Save