|
@@ -140,10 +140,12 @@ router.beforeEach(async (to, from, next) => {
|
|
|
if (localStorage.getItem('chooseRole') === 'showChooseRole' && to.path !== '/register/selectedPersonRole' && tokenIndex === 2) next('/register/selectedPersonRole')
|
|
|
else if (localStorage.getItem('necessaryInfoReady') === 'fddeaddc47868b' && tokenIndex === 2 && localStorage.getItem('chooseRole') !== 'showChooseRole') dialogExtend('necessaryInfoDialog')
|
|
|
|
|
|
- if (from.path !== '/login' && from.path !== '/') {
|
|
|
- window.location.reload()
|
|
|
- } else {
|
|
|
- next({ path: '/recruitHome' })
|
|
|
+ if (to.fullPath === '/login') {
|
|
|
+ if (from.path !== '/login' && from.path !== '/') {
|
|
|
+ window.location.reload()
|
|
|
+ } else {
|
|
|
+ next({ path: '/recruitHome' })
|
|
|
+ }
|
|
|
}
|
|
|
next()
|
|
|
return
|