Переглянути джерело

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

lifanagju_citu 2 місяців тому
батько
коміт
eb8db9ebc9
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/permission.js

+ 2 - 1
src/permission.js

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