修改
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
import enquireScreen from '@/utils/device'
|
import enquireScreen from '@/utils/device'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import 'moment/locale/zh-cn'
|
import 'moment/locale/zh-cn'
|
||||||
import store from './store'
|
|
||||||
|
|
||||||
moment.locale('zh-cn')
|
moment.locale('zh-cn')
|
||||||
|
|
||||||
@@ -58,8 +57,8 @@
|
|||||||
// 自己配置多语言适配
|
// 自己配置多语言适配
|
||||||
this.$root.Bus.$on('switchLanguage', value => {
|
this.$root.Bus.$on('switchLanguage', value => {
|
||||||
let router_path = this.$route.path
|
let router_path = this.$route.path
|
||||||
this.isRouterAlive = false //先关闭,
|
|
||||||
// 刷新页面
|
// 刷新页面
|
||||||
|
this.isRouterAlive = false //先关闭,
|
||||||
this.$nextTick(function() {
|
this.$nextTick(function() {
|
||||||
this.isRouterAlive = true //再打开
|
this.isRouterAlive = true //再打开
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -291,6 +291,7 @@
|
|||||||
/*update_end author:liushaoqian date:20200507 for: 刷新缓存*/
|
/*update_end author:liushaoqian date:20200507 for: 刷新缓存*/
|
||||||
moment,
|
moment,
|
||||||
changeLocale(localeval) {
|
changeLocale(localeval) {
|
||||||
|
console.log(localeval)
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
switch (localeval) {
|
switch (localeval) {
|
||||||
case 'zh-cn':
|
case 'zh-cn':
|
||||||
|
|||||||
@@ -320,14 +320,13 @@ export const constantRouterMap = [
|
|||||||
name: 'alteration',
|
name: 'alteration',
|
||||||
component: () => import(/* webpackChunkName: "user" */ '@/views/user/alteration/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: '/',
|
// path: '/',
|
||||||
// name: 'index',
|
// name: 'index',
|
||||||
|
|||||||
Reference in New Issue
Block a user