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

预渲染

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