瀏覽代碼

修改不能重新上传视频

lex-xin 4 年之前
父節點
當前提交
54b1b45c3e

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-3184ef81.74d2ca51.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-4b60c6cb.75ef3506.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.a936688f.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3184ef81.b7bc4274.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-4b60c6cb.653759bb.js


+ 2 - 4
src/views/contentManager/contentOperation.vue

@@ -130,11 +130,10 @@
             :on-success="handleUploadSuccess"
             :on-error="handleUploadError"
             :show-file-list="false"
-            :limit="1"
             accept=".mp4"
             :file-list="fileList"
             :on-exceed="handleExceed">
-            <video style="width: 120px; height: 120px" v-if="dialogForm.videoUrl" controls="controls" type="video/mp4" preload="auto" :src="dialogForm.videoUrl"></video>
+            <video style="width: 120px; height: 120px" v-if="dialogForm.videoUrl" type="video/mp4" preload="auto" :src="dialogForm.videoUrl"></video>
             <i v-else class="el-icon-plus avatar-uploader-icon"></i>
           </el-upload>
           <p class="imageSize" >只能上传mp4文件, 且不超过100M</p>
@@ -343,7 +342,6 @@ export default {
         videoUrl: null
       }
       this.fileList = []
-      this.$refs["diologForm"].resetFields();
     }
     this.type = query.type;
     this.pageType = query.pageType;
@@ -602,7 +600,7 @@ export default {
     },
     handleUploadSuccess(file, fileList) {
       this.uploadLoading = false
-      // this.$message.success('上传视频成功')
+      this.$message.success('上传视频成功')
       this.dialogForm.videoUrl = file.data.url;
     },
     handleExceed(files, fileList) {

Some files were not shown because too many files changed in this diff