Commit dc88de24 authored by xinzhedeai's avatar xinzhedeai

fix: 请求中台 401错误时清空token,跳转会首页重新登录

parent 5684165a
......@@ -81,10 +81,13 @@ var http2 = {
const decryptRes = JSON.parse(sm2_decrypt_result)
if(decryptRes.code === 400 || decryptRes.code === 401 || decryptRes.status === 401){
gemhoUtil.setCookie('token', '') // 清空token
vant.Dialog.alert({
title: '信息提示',
message: decryptRes.msg || decryptRes.message,
})
}).then(() => { // confirm按钮回调
gemhoUtil.navigatePage('../index.html')
});
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment