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; } }); },