From cad87d36cb1a78710689e70b4b3f731a52cc1f0c Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 19 Jan 2023 17:19:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AF=BC=E5=85=A530s=E6=97=A0=E5=8F=8D?= =?UTF-8?q?=E5=BA=94=E7=BB=93=E6=9D=9F=E8=AF=B7=E6=B1=82=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=AF=BC=E5=85=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/ExportScore.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/drawers/ExportScore.vue b/src/components/drawers/ExportScore.vue index 3c3f18c4..c06a1061 100644 --- a/src/components/drawers/ExportScore.vue +++ b/src/components/drawers/ExportScore.vue @@ -298,6 +298,12 @@ export default { console.log("查询导入状态失败", err); }); }, 500); + setTimeout(() => { + clearInterval(timer) + state.addLoading = false; + message.destroy(); + message.error(`文件导入超时`); + }, 30000); } else if (status === "error") { state.uploadErr = true; message.error(`${info.file.name}上传失败`);