|
@@ -168,7 +168,6 @@ export const useUserStore = defineStore('user',
|
|
Snackbar.success(res?.type === 'emailLogin' ? '登录成功' : '切换成功')
|
|
Snackbar.success(res?.type === 'emailLogin' ? '登录成功' : '切换成功')
|
|
// 人才推荐不需要跳转
|
|
// 人才推荐不需要跳转
|
|
if (!res.noJump) {
|
|
if (!res.noJump) {
|
|
- await this.checkEnterpriseBaseInfo() // 校验企业必填信息
|
|
|
|
setTimeout(() => { window.location.href = '/enterprise' }, 1000)
|
|
setTimeout(() => { window.location.href = '/enterprise' }, 1000)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -180,7 +179,7 @@ export const useUserStore = defineStore('user',
|
|
// 是否为企业账号管理员
|
|
// 是否为企业账号管理员
|
|
const isAdmin = result.userType === '1'
|
|
const isAdmin = result.userType === '1'
|
|
localStorage.setItem('isAdmin', isAdmin)
|
|
localStorage.setItem('isAdmin', isAdmin)
|
|
-
|
|
|
|
|
|
+ if (isAdmin) await this.checkEnterpriseBaseInfo() // 校验企业必填信息
|
|
localStorage.setItem('entBaseInfo', JSON.stringify(result))
|
|
localStorage.setItem('entBaseInfo', JSON.stringify(result))
|
|
},
|
|
},
|
|
// 获取企业账户信息
|
|
// 获取企业账户信息
|