修改中英文切换

This commit is contained in:
qq787203167
2022-03-03 16:14:02 +08:00
parent 0f102d9be7
commit ae812d0318
6 changed files with 95 additions and 176 deletions
+3 -1
View File
@@ -11,6 +11,7 @@
import enquireScreen from '@/utils/device'
import moment from 'moment'
import 'moment/locale/zh-cn'
import store from './store'
moment.locale('zh-cn')
@@ -65,11 +66,12 @@
localStorage.setItem('language', 'en-us')
break
}
// 刷新页面
this.isRouterAlive = false //先关闭,
// 刷新页面
this.$nextTick(function() {
this.isRouterAlive = true //再打开
})
// 系统组件适配
let lang = localStorage.language
if (lang == 'zh-cn') {