소스 검색

修改pdf预览方式

cfort 2 년 전
부모
커밋
8faf71f08c
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6 5
      src/business/platform/file/attachment/selector.vue

+ 6 - 5
src/business/platform/file/attachment/selector.vue

@@ -197,11 +197,12 @@
                 }
             },
             pdfPreviewType() {
-                const t = specialField.some(i => this.elFormItem.label && this.elFormItem.label.includes(i))
-                if (this.elFormItem.label && t) {
-                    return 'PDFH5'
-                }
-                return 'ONLYOFFICE'
+                // const t = specialField.some(i => this.elFormItem.label && this.elFormItem.label.includes(i))
+                // if (this.elFormItem.label && t) {
+                //     return 'PDFH5'
+                // }
+                // return 'ONLYOFFICE'
+                return 'PDFH5'
             }
         },
         watch: {