86bc39c3 by xiaomiao

--no commit message

1 parent e883f0e8
...@@ -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')
......