瀏覽代碼

修改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: {