Przeglądaj źródła

上传附件修改

duy 2 miesięcy temu
rodzic
commit
74bbe5da39
1 zmienionych plików z 2 dodań i 5 usunięć
  1. 2 5
      src/views/data-fill/components/HcUpload.vue

+ 2 - 5
src/views/data-fill/components/HcUpload.vue

@@ -215,14 +215,11 @@ const handleFileChange = async (file, fileList) => {
         url:'',
       }))
 
- 
-    
- 
     fileListData.value = fileList.filter(file => {
       // 检查 size 属性是否存在且等于 60M,或者 size 属性不存在
       return (file.size !== undefined && isFileSize(file?.size, 60)) || file.size === undefined
     })
-       console.log( fileListData.value, ' fileListData.value22222222')
+  
     const pdfUrLArray = await getPdfUrl(fileListData.value)
     fileListData.value.forEach((item, index) => {
         if (item.raw && pdfUrLArray[index]) {
@@ -230,7 +227,7 @@ const handleFileChange = async (file, fileList) => {
           fileListData.value[index].url = pdfUrl // 更新文件列表中的 url 字段
         }
       })
-      console.log( fileListData.value, '  fileListData.value333333')
+
       
 }
 //上传文件前预览pdf