修复bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 11m14s

This commit is contained in:
sexygoat
2026-04-08 10:19:25 +08:00
parent ff087abd44
commit b510b4539f
55 changed files with 2274 additions and 2612 deletions

View File

@@ -185,6 +185,12 @@ export function useLogin() {
return
}
// 检查用户类型 - 禁止企业账号登录
if (response.data.user && response.data.user.user_type === 4) {
ElMessage.error('企业账号无法登录后台管理系统')
return
}
// 保存 Token
userStore.setToken(response.data.access_token, response.data.refresh_token)