diff --git a/src/components/tools/UserMenu.vue b/src/components/tools/UserMenu.vue index 85fce25..96f4703 100644 --- a/src/components/tools/UserMenu.vue +++ b/src/components/tools/UserMenu.vue @@ -248,8 +248,17 @@ export default { if (res.success) { // 单点登录成功,跳转到企业端首页,并用token登录 console.log(res) - const token = res.result.token - window.open(`${window._CONFIG.enterpriseTerminal}dashboard/analysis?token=${token}`, '_self') + if (res.message === 'updatePassword') { + notification['error']({ + message: '登录失败', + description: '请先用手机验证码登录', + duration: 4, + }) + return + } else { + const token = res.result.token + window.open(`${window._CONFIG.enterpriseTerminal}dashboard/analysis?token=${token}`, '_self') + } } else { notification['error']({ message: '登录失败',