Commit b6504df9 by zhaochengxiang

超时问题

parent 6c5e21f0
...@@ -26,19 +26,18 @@ function* request(args) { ...@@ -26,19 +26,18 @@ function* request(args) {
if (ex) { if (ex) {
if (ex?.ApiError?.cnMessage) { if (ex?.ApiError?.cnMessage) {
showErrorNotifaction('系统异常', ex.ApiError.cnMessage, 5); showErrorNotifaction('系统异常', ex.ApiError.cnMessage, 5);
error && error(ex);
} else if (ex?.response?.data) { } else if (ex?.response?.data) {
let newData = {}; let newData = {};
try { try {
newData = JSON.parse(ex?.response?.data); newData = JSON.parse(ex?.response?.data);
showErrorNotifaction('系统异常', newData.ApiError?.cnMessage, 5); showErrorNotifaction('系统异常', newData.ApiError?.cnMessage, 5);
error && error(ex);
} catch(error) { } catch(error) {
showErrorNotifaction('系统异常', ex?.response?.data, 5); showErrorNotifaction('系统异常', ex?.response?.data, 5);
error && error(ex);
} }
} }
} }
error && error(ex);
} }
} }
......
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