提交 5c81994d authored 作者: 王天霸's avatar 王天霸

预渲染

上级 85664361
......@@ -24,7 +24,7 @@ router.beforeEach((to, from, next) => {
/* has token*/
if (to.path === '/platformlogin') {
next({ path: '/home/index' })
next({ path: '/index' })
NProgress.done()
} else {
if (store.getters.roles.length === 0) {
......@@ -56,7 +56,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
store.dispatch('FedLogOut').then(() => {
Message.error(err)
next({ path: '/home/index' })
next({ path: '/index' })
})
})
} else {
......
......@@ -82,11 +82,11 @@ export const constantRoutes = [
component: () => import('@/views/returnurl'),
hidden: true
},
{
path: '/',
component: (resolve) => require(['@/views/entry/newyuncang'], resolve),
hidden: true
},
// {
// path: '/',
// component: (resolve) => require(['@/views/entry/newyuncang'], resolve),
// hidden: true
// },
// 总体流程
{
path: '/process',
......@@ -131,7 +131,7 @@ export const constantRoutes = [
hidden: true
},
{
path: '/home',
path: '/',
component: Layout,
redirect: 'index',
children: [
......
......@@ -45,7 +45,7 @@
getInfo().then(res=> {
if (res.code == 1 && res.data.user) {
if (res.data.user.state == 1) {
this.$router.push({path: '/home/index'});
this.$router.push({path: '/index'});
}
if (res.data.user.state == 2) {
this.$router.push({path: '/reviewing'})
......
......@@ -39,7 +39,7 @@
getInfo().then(res=> {
if (res.code == 1 && res.data.user) {
if (res.data.user.state == 1) {
this.$router.push({path: '/home/index'});
this.$router.push({path: '/index'});
}
if (res.data.user.state == 2) {
this.$router.push({path: '/reviewing'})
......
......@@ -55,7 +55,7 @@
}
break;
case 1: // 审核成功,要跳转到首页
this.$router.push({path: '/home/index'});
this.$router.push({path: '/index'});
break;
case 2: // 审核中
this.$router.push({path: '/reviewing'});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论