|
@@ -67,8 +67,11 @@ router.beforeEach(async (to, from, next) => {
|
|
|
}
|
|
|
}
|
|
|
if (to.fullPath === '/login') {
|
|
|
- window.location.reload()
|
|
|
- // next({ path: '/recruitHome' })
|
|
|
+ if (from.path !== '/login' && from.path !== '/') {
|
|
|
+ window.location.reload()
|
|
|
+ } else {
|
|
|
+ next({ path: '/recruitHome' })
|
|
|
+ }
|
|
|
}
|
|
|
// 获取字典信息
|
|
|
// const dictStore = useDictStore()
|