fix: website lang error

This commit is contained in:
bastarder 2020-10-29 17:51:59 +08:00 committed by hangzou
parent aea6f4204f
commit 212f161063
2 changed files with 2 additions and 2 deletions

View File

@ -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] || '中文'

View File

@ -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)