双宇设置
This commit is contained in:
@@ -58,20 +58,11 @@
|
||||
// 自己配置多语言适配
|
||||
this.$root.Bus.$on('switchLanguage', value => {
|
||||
let router_path = this.$route.path
|
||||
switch (value) {
|
||||
case 'zh-cn':
|
||||
localStorage.setItem('language', 'zh-cn')
|
||||
break
|
||||
case 'en-us':
|
||||
localStorage.setItem('language', 'en-us')
|
||||
break
|
||||
}
|
||||
this.isRouterAlive = false //先关闭,
|
||||
// 刷新页面
|
||||
this.$nextTick(function() {
|
||||
this.isRouterAlive = true //再打开
|
||||
})
|
||||
|
||||
// 系统组件适配
|
||||
let lang = localStorage.language
|
||||
if (lang == 'zh-cn') {
|
||||
|
||||
Reference in New Issue
Block a user