修改中英文切换
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user