소스 검색

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

xieyong 2 일 전
부모
커밋
86dd67a50c
1개의 변경된 파일과 4개의 추가작업 그리고 2개의 파일을 삭제
  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
           );
         });
       },