|
@@ -278,17 +278,11 @@ export default {
|
|
const res = await uploadApi(formData, {
|
|
const res = await uploadApi(formData, {
|
|
md5: this.fileData.md5,
|
|
md5: this.fileData.md5,
|
|
}).catch((error) => {
|
|
}).catch((error) => {
|
|
|
|
+ const status = error.response?.status;
|
|
|
|
+ if ([403, 401, 405, 502].includes(status)) return;
|
|
if (error.response?.data.desc) {
|
|
if (error.response?.data.desc) {
|
|
this.errorMsgModalIsShow = true;
|
|
this.errorMsgModalIsShow = true;
|
|
this.excelErrorMsgs = error.response.data.desc.split("\n");
|
|
this.excelErrorMsgs = error.response.data.desc.split("\n");
|
|
- if (
|
|
|
|
- this.excelErrorMsgs.some(
|
|
|
|
- (item) =>
|
|
|
|
- item.includes("no login") || item.includes("token is wrong")
|
|
|
|
- )
|
|
|
|
- ) {
|
|
|
|
- this.excelErrorMsgs = ["登陆失效,请重新登录!"];
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.loading = false;
|
|
this.loading = false;
|