--no commit message
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -73,7 +73,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -73,7 +73,7 @@ router.beforeEach(async (to, from, next) => { |
| 73 | await store.dispatch('user/getUserInfo') | 73 | await store.dispatch('user/getUserInfo') |
| 74 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) | 74 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) |
| 75 | const routeTo = Cookies.get('routerTo') | 75 | const routeTo = Cookies.get('routerTo') |
| 76 | if (routeTo && routeTo !== '/') { | 76 | if (to.fullPath||routeTo && routeTo !== '/') { |
| 77 | next({ ...to, replace: true }) | 77 | next({ ...to, replace: true }) |
| 78 | } else { | 78 | } else { |
| 79 | next('/home') | 79 | next('/home') | ... | ... |
-
Please register or sign in to post a comment