Przeglądaj źródła

fix: 修正印章文件路径访问逻辑

yusheng 2 miesięcy temu
rodzic
commit
d83c5178e3
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/views/doc/util.js

+ 3 - 1
src/views/doc/util.js

@@ -87,9 +87,11 @@ export function setFolderList(data) {
 export function setFileUrl(row) {
   let file = row.storagePath[0];
 
-  if ((row.status == 2 || row.status == 4) && row.stampStoragePath) {
+  if ((row.status == 2 || row.status == 4) && row.stampStoragePath[0]) {
     file = row.stampStoragePath[0];
   }
+  console.log(file)
+  console.log(row)
   let fileNames = file.storePath.split('/');
   let url =
     window.location.origin +