mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-13 04:01:40 +08:00
优化服务器连接失败提示;优化登录界面输入框回车处理
This commit is contained in:
@@ -12,4 +12,5 @@ postRequest('/debug/status', { token: localStorage.token })
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
alert("无法连接到服务器,请检查网络连接!");
|
||||
});
|
@@ -60,5 +60,8 @@ function search({ tableElementId = "", searchText = "", categoryId = 0 }) {
|
||||
} else {
|
||||
alert(`出错啦!${data.errMsg} (错误码: ${data.errCode}) `);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
alert("无法连接到服务器,请检查网络连接!");
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user