Browse Source

去掉音频时长判断

jwyu 2 years ago
parent
commit
b34be1f82e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/views/report/chapter/Detail.vue

+ 5 - 5
src/views/report/chapter/Detail.vue

@@ -222,11 +222,11 @@ function handleAudioUploadBeforeRead(e){
 async function handleAudioUploadAfterRead(e){
     // console.log(e);
     const duration=await handleGetAudioDuration(e.file)
-    if(duration>60*15){
-        showToast('音频时长不得超过15分钟')
-        return
-    }
-    temAudioData.time=duration
+    // if(duration>60*15){
+    //     showToast('音频时长不得超过15分钟')
+    //     return
+    // }
+    temAudioData.time=duration||0
     temAudioData.size=e.file.size/1024/1024 //单位MB
     temAudioData.name=e.file.name
     console.log('音频数据temAudioData',temAudioData);