Commit fe92a03d authored by beisir's avatar beisir

fix(request拦截): 特殊错误信息不经过request全局提示

parent 3bf3795e
......@@ -98,6 +98,7 @@ export async function uploadFile(file) {
const data = await request.post('/product/api/merchant/BatchUpdateStock', {
prefix: kdspApi,
data: params,
notTip: true,
});
return data;
}
......
......@@ -122,7 +122,7 @@ request.interceptors.response.use(async (response, options) => {
});
window.location.href = loginPath;
}
if ((data.businessCode && data.businessCode !== '0000') || data.businessCode === null) {
if (data.businessCode && data.businessCode !== '0000' && !options.notTip) {
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