|
@@ -127,15 +127,23 @@ service.interceptors.response.use(
|
|
|
}
|
|
|
return Promise.reject("无效的会话,或者会话已过期,请重新登录。");
|
|
|
} else if (code === 500) {
|
|
|
- Notification.error({ title: "error", message: msg });
|
|
|
+ Notification.error({
|
|
|
+ title: "error",
|
|
|
+ message: msg,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ });
|
|
|
// Message({ message: msg, type: "error" });
|
|
|
return Promise.reject(new Error(msg));
|
|
|
} else if (code === 601) {
|
|
|
- Notification.warning({ title: "error", message: msg });
|
|
|
+ Notification.warning({
|
|
|
+ title: "error",
|
|
|
+ message: msg,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ });
|
|
|
// Message({ message: msg, type: "warning" });
|
|
|
return Promise.reject("error");
|
|
|
} else if (code !== 200) {
|
|
|
- Notification.error({ title: msg });
|
|
|
+ Notification.error({ title: msg, dangerouslyUseHTMLString: true });
|
|
|
return Promise.reject("error");
|
|
|
} else {
|
|
|
return res.data;
|