From 7c2e9a375c7c1780f2708988802354764ef1d5f9 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 28 Mar 2024 17:04:43 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug82920?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/UserMenu.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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: '登录失败',