[update] 修改bug82920
This commit is contained in:
@@ -248,8 +248,17 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 单点登录成功,跳转到企业端首页,并用token登录
|
// 单点登录成功,跳转到企业端首页,并用token登录
|
||||||
console.log(res)
|
console.log(res)
|
||||||
const token = res.result.token
|
if (res.message === 'updatePassword') {
|
||||||
window.open(`${window._CONFIG.enterpriseTerminal}dashboard/analysis?token=${token}`, '_self')
|
notification['error']({
|
||||||
|
message: '登录失败',
|
||||||
|
description: '请先用手机验证码登录',
|
||||||
|
duration: 4,
|
||||||
|
})
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
const token = res.result.token
|
||||||
|
window.open(`${window._CONFIG.enterpriseTerminal}dashboard/analysis?token=${token}`, '_self')
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
notification['error']({
|
notification['error']({
|
||||||
message: '登录失败',
|
message: '登录失败',
|
||||||
|
|||||||
Reference in New Issue
Block a user