Commit 791ef0e4 by zhaochengxiang

超时提示

parent 647c8726
...@@ -29,7 +29,7 @@ function* request(args) { ...@@ -29,7 +29,7 @@ function* request(args) {
if (ex?.ApiError?.cnMessage) { if (ex?.ApiError?.cnMessage) {
showErrorNotifaction('温馨提示', ex.ApiError.cnMessage, 5); showErrorNotifaction('温馨提示', ex.ApiError.cnMessage, 5);
} }
} else if ((ex?.message||'').indexOf('timeout') !== -1 && (ex?.message||'').indexOf('exceeded') !== -1) { } else if (ex && ex.message && typeof ex.message==='string' && ex.message.indexOf('timeout') !== -1 && ex.message.indexOf('exceeded') !== -1) {
showErrorNotifaction('温馨提示', '请求超时。', 5); showErrorNotifaction('温馨提示', '请求超时。', 5);
} else { } else {
showErrorNotifaction('温馨提示', '连接失败,当前页面加载异常。', 5); showErrorNotifaction('温馨提示', '连接失败,当前页面加载异常。', 5);
......
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