From 9007f9204fc811a18834683ed4b28e2a9404a88a Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Sat, 26 Feb 2022 11:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/CoursewareAddOrUpdate.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/course/CoursewareAddOrUpdate.vue b/src/views/course/CoursewareAddOrUpdate.vue index 72f2510..ccf9d3f 100644 --- a/src/views/course/CoursewareAddOrUpdate.vue +++ b/src/views/course/CoursewareAddOrUpdate.vue @@ -2,7 +2,7 @@ @@ -157,6 +157,7 @@ import { dictionaryDropDown } from '@/api/sys/dictionaryItem'; export default { data() { return { + save:false, pageName: '', // treeData: [], ifResources: this.$route.query.ifResources, @@ -286,6 +287,9 @@ export default { this.uploadLoading = true; this.uploadButtonText = '上传中...'; + //不让他保存 + this.save= true; + //处理视频上传 const data = new FormData(); data.append('file', file); @@ -299,6 +303,7 @@ export default { axios .post(ossUpload(), data, { headers: header }) .then(res => { + this.save = false; this.uploadLoading = false; this.uploadButtonText = '选择文件'; if (res.data.code === 200) {