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

增加错误提示

parent e9d4cebb
......@@ -218,8 +218,6 @@ const TableList = props => {
const result = await uploadFile(info.file);
if (result.businessCode === '0000') {
notification.success({ message: '导入成功' });
} else {
notification.error({ message: result.detail });
}
},
accept: '.xlsx',
......
......@@ -116,6 +116,11 @@ request.interceptors.response.use(async (response, options) => {
});
window.location.href = loginPath;
}
if (data.businessCode !== '0000') {
notification.warning({
message: data.detail || data.msg || '操作失败',
});
}
return response;
});
......
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