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