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