Kaynağa Gözat

update DiskFile.vue

reghao 6 ay önce
ebeveyn
işleme
e0c04849d6
1 değiştirilmiş dosya ile 5 ekleme ve 14 silme
  1. 5 14
      src/views/disk/DiskFile.vue

+ 5 - 14
src/views/disk/DiskFile.vue

@@ -309,15 +309,7 @@ export default {
       },
       // ****************************************************************************************************************
       showUploadDialog: false,
-      options: {
-        target: '',
-        // 分块大小 10MB
-        chunkSize: 1024 * 1024 * 10,
-        // 失败自动重传次数
-        maxChunkRetries: 3,
-        fileParameterName: 'file',
-        testChunks: true
-      },
+      options: null,
       attrs: {
         accept: '*'
       }
@@ -395,7 +387,6 @@ export default {
       this.showUploadDialog = false
     },
     onClickUpload() {
-      this.showUploadDialog = true
       getDiskChannelInfo().then(resp => {
         if (resp.code === 0) {
           const respData = resp.data
@@ -433,17 +424,17 @@ export default {
         } else {
           this.$notify({
             title: '提示',
-            message: '获取 OSS 服务器地址失败, 暂时无法上传视频文件',
+            message: '获取 OSS 服务器地址失败, 暂时无法上传文件',
             type: 'error',
-            duration: 3000
+            duration: 1000
           })
         }
       }).catch(error => {
         this.$notify({
-          title: '获取 OSS 服务器地址失败, 暂时无法上传视频文件',
+          title: '获取 OSS 服务器地址失败, 暂时无法上传文件',
           message: error.message,
           type: 'warning',
-          duration: 3000
+          duration: 1000
         })
       })
     },