Browse Source

优化

master
安虹睿 1 year ago
parent
commit
b9a82d1667
  1. 1
      Code/Fe/src/components/umyTable/index.vue
  2. 5
      Code/Fe/src/lang/index.js

1
Code/Fe/src/components/umyTable/index.vue

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

5
Code/Fe/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