Browse Source

区分判断令牌类型

lifanagju_citu 8 months ago
parent
commit
63dbf9bf0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/permission.js

+ 1 - 1
src/permission.js

@@ -19,7 +19,7 @@ router.beforeEach(async (to, from, next) => {
     useUserStore().checkEnterpriseBaseInfo()
     next()
   }
-  if (getToken()) {
+  if (getToken(to?.meta?.loginType === 'enterprise' ? 1 : 2)) {
     if (to.path === '/login') {
       next({ path: '/recruitHome' })
     } else {