From 86dc894f2f9a861e3787a8bac797cc40c2fd0f2f Mon Sep 17 00:00:00 2001 From: chenghuan Date: Tue, 16 Dec 2025 10:01:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=BC=80=E8=AF=BE=E4=B8=8A=E4=BC=A0=E6=95=B0=E6=8D=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=B8=80=E7=9B=B4loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/user/user-add-course.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/user/user-add-course.vue b/src/views/modules/user/user-add-course.vue index d80ee4a..d1661f9 100644 --- a/src/views/modules/user/user-add-course.vue +++ b/src/views/modules/user/user-add-course.vue @@ -267,15 +267,16 @@ file: this.dataForm.file }) }).then(({ data }) => { + this.dataListLoading = false; if (data && data.code === 0) { if(data.result&&data.result.has.length>0){ this.resultStatus = true; this.resultData = data.result; - this.dataListLoading = false; + } else { + this.$message.warning(`没有有效的数据,请检查核对文件模板和数据后重新上传`); } }else{ this.$message.error('文件解析有误'); - this.dataListLoading = false; } }); },