feat(request): 会员信息接口500返回登录页
This commit is contained in:
parent
9e3da7951b
commit
7c45082ca8
|
@ -78,6 +78,20 @@ module.exports = vm => {
|
||||||
})
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} else if (data.code == 500) {
|
} else if (data.code == 500) {
|
||||||
|
if (['/member/api/member/get-info'].includes(response?.config?.url)) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '登录失败',
|
||||||
|
icon: 'none',
|
||||||
|
duration: 800,
|
||||||
|
})
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/login/index',
|
||||||
|
})
|
||||||
|
}, 800)
|
||||||
|
removeToken()
|
||||||
|
return data
|
||||||
|
}
|
||||||
uni.$u.toast(data.msg)
|
uni.$u.toast(data.msg)
|
||||||
return data
|
return data
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue