fix: 请求失败时回调函数未执行

This commit is contained in:
shiziyuan9527 2022-06-17 16:25:14 +08:00 committed by 刘瑞斌
parent 34976dc4d1
commit d4a7d09f85
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ export function login() {
function then(success, response, result) {
// 已经掉线不再弹出错误信息,避免满屏都是错误
if (response && response.headers["authentication-status"] === "invalid") {
if (response && response.headers && response.headers["authentication-status"] === "invalid") {
login();
return;
}