Explorar el Código

feat: 优化文件获取逻辑,支持多种存储路径和文件名

xieyong hace 1 día
padre
commit
86dd67a50c
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/views/doc/components/file-table-list.vue

+ 4 - 2
src/views/doc/components/file-table-list.vue

@@ -1020,9 +1020,11 @@
         }
 
         this.selection.forEach((item) => {
+          const objectName = item?.stampStoragePath[0]?.storePath || item?.storagePath[0]?.storePath;
+          const fileName = item?.stampStoragePath[0]?.name || item?.storagePath[0]?.name;
           getFile(
-            { objectName: item.stampStoragePath[0].storePath },
-            item.stampStoragePath[0].name
+            { objectName },
+            fileName
           );
         });
       },