Просмотр исходного кода

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

xieyong 1 день назад
Родитель
Сommit
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
           );
         });
       },