This commit is contained in:
qq787203167
2022-03-03 17:00:09 +08:00
parent a25059ba93
commit aa03898945
3 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -11,7 +11,6 @@
import enquireScreen from '@/utils/device'
import moment from 'moment'
import 'moment/locale/zh-cn'
import store from './store'
moment.locale('zh-cn')
@@ -58,8 +57,8 @@
// 自己配置多语言适配
this.$root.Bus.$on('switchLanguage', value => {
let router_path = this.$route.path
this.isRouterAlive = false //先关闭,
// 刷新页面
this.isRouterAlive = false //先关闭,
this.$nextTick(function() {
this.isRouterAlive = true //再打开
})
@@ -291,6 +291,7 @@
/*update_end author:liushaoqian date:20200507 for: 刷新缓存*/
moment,
changeLocale(localeval) {
console.log(localeval)
this.isLoading = true
switch (localeval) {
case 'zh-cn':
+5 -6
View File
@@ -320,14 +320,13 @@ export const constantRouterMap = [
name: 'alteration',
component: () => import(/* webpackChunkName: "user" */ '@/views/user/alteration/Alteration')
},
{
path: '/docManage/library/detail',
name: 'docIndex',
component: () => import(/* webpackChunkName: "user" */ '@/views/documentManage/library/docDetail/index')
},
]
},
{
path: '/docManage/library/detail',
name: 'docIndex',
component: () => import(/* webpackChunkName: "user" */ '@/views/documentManage/library/docDetail/index')
},
// {
// path: '/',
// name: 'index',