mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix: website lang error
This commit is contained in:
parent
aea6f4204f
commit
212f161063
@ -144,7 +144,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
lang() {
|
||||
return this.$route.path.split('/')[1] || [Language.CN]
|
||||
return this.$route.path.split('/')[1] || Language.CN
|
||||
},
|
||||
displayedLang() {
|
||||
return this.langs[this.lang] || '中文'
|
||||
|
@ -33,7 +33,7 @@ const LOAD_MAP = {
|
||||
[Language.FR]: name => {
|
||||
return getAsyncComponent(() => import(/* webpackChunkName: "fr-FR" */ `./pages/${name}.vue`))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
const load = function(lang, path) {
|
||||
return LOAD_MAP[lang](path)
|
||||
|
Loading…
Reference in New Issue
Block a user