This commit is contained in:
Your Name
2026-04-07 18:13:03 +08:00
parent a780356908
commit fdf714f833
397 changed files with 15086 additions and 1043 deletions
+10 -4
View File
@@ -145,13 +145,16 @@ const handleLogin = async () => {
account: remAccount.value ? formData.account : ''
})
const result: any = await userStore.login(formData)
// 检查是否需要修改密码
if (result.is_paw === 0) {
router.push('/change-password')
return
}
if (result.need_bind_work_wechat) {
router.push('/bind-work-wechat')
return
}
redirectAfterLogin()
}
@@ -168,13 +171,16 @@ const handleWxWorkCodeLogin = async (code: string) => {
wxWorkAutoLogin.value = true
try {
const result: any = await userStore.workWechatLogin(code)
// 检查是否需要修改密码
if (result.is_paw === 0) {
router.push('/change-password')
return
}
if (result.need_bind_work_wechat) {
router.push('/bind-work-wechat')
return
}
redirectAfterLogin()
} catch (error: any) {
console.error('企业微信登录失败:', error)