@@ -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 {