From c6f8452f8dac11553fc026ea564316aa34e1c44a Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Fri, 11 Mar 2022 16:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5=E7=BB=99?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/CoursewareAddOrUpdate.vue | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/views/course/CoursewareAddOrUpdate.vue b/src/views/course/CoursewareAddOrUpdate.vue index 74a4d4f..516093a 100644 --- a/src/views/course/CoursewareAddOrUpdate.vue +++ b/src/views/course/CoursewareAddOrUpdate.vue @@ -341,8 +341,9 @@ export default { }) .catch(err => { console.log("进来了!!!!!",err); - this.$message.error(err); - this.uploadButtonText = '选择文件'; + // data.delete("file") // 清空文件 + // this.uploadButtonText = '选择文件'; + this.$message.error("上传失败!视频超出可上传大小范围"); }); return false; }, @@ -575,19 +576,6 @@ export default { } }, - //视频上传和文本上传数据初始化 - // initialize(key){ - // if(key == 1) { - // this.fileUpload.videoForm.sizeStr = 0 - // this.fileUpload.videoForm.learnHours == 0 - // this.fileUpload.videoForm.learnScore= 0 - // } - // if(key == 2){ - // this.fileUpload.textForm.sizeStr = 0 - // this.fileUpload.textForm.learnHours = 0 - // this.fileUpload.textForm.learnScore= 0.0 - // } - // }, }, };