Commit ecb80f2c authored by FE-安焕焕's avatar FE-安焕焕 👣

修改全局错误提示

parent e7540537
......@@ -116,7 +116,7 @@ request.interceptors.response.use(async (response, options) => {
});
window.location.href = loginPath;
}
if (data.businessCode !== '0000') {
if (data.businessCode && data.businessCode !== '0000') {
notification.warning({
message: data.detail || data.msg || '操作失败',
});
......
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