소스 검색

fix: 支持特定状态文件使用印章路径

yusheng 3 달 전
부모
커밋
a134203a1c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/doc/util.js

+ 4 - 0
src/views/doc/util.js

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