浏览代码

登录状态下点击未登录网页的登录按钮即刷新页面

lifanagju_citu 2 月之前
父节点
当前提交
02e5e226a6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/permission.js

+ 2 - 1
src/permission.js

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