mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
fix:导入30s无反应结束请求,提示导入失败
This commit is contained in:
@@ -298,6 +298,12 @@ export default {
|
|||||||
console.log("查询导入状态失败", err);
|
console.log("查询导入状态失败", err);
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
|
setTimeout(() => {
|
||||||
|
clearInterval(timer)
|
||||||
|
state.addLoading = false;
|
||||||
|
message.destroy();
|
||||||
|
message.error(`文件导入超时`);
|
||||||
|
}, 30000);
|
||||||
} else if (status === "error") {
|
} else if (status === "error") {
|
||||||
state.uploadErr = true;
|
state.uploadErr = true;
|
||||||
message.error(`${info.file.name}上传失败`);
|
message.error(`${info.file.name}上传失败`);
|
||||||
|
|||||||
Reference in New Issue
Block a user