hookehuyr

fix(PdfPreview): 禁用PDF打印功能并注释搜索回调

禁用PDF打印功能以防止用户误操作,并注释掉搜索回调以避免不必要的调用
...@@ -46,7 +46,7 @@ const initPdfViewer = () => { ...@@ -46,7 +46,7 @@ const initPdfViewer = () => {
46 pdfPath: pdfPath, 46 pdfPath: pdfPath,
47 loading: (load, fileInfo) => { 47 loading: (load, fileInfo) => {
48 if (!load) { 48 if (!load) {
49 - configPdfApiOptions.onSearch("", false); 49 + // configPdfApiOptions.onSearch("", false);
50 } 50 }
51 }, 51 },
52 pdfOption: { 52 pdfOption: {
...@@ -62,7 +62,7 @@ const initPdfViewer = () => { ...@@ -62,7 +62,7 @@ const initPdfViewer = () => {
62 clearScale: 1.5, 62 clearScale: 1.5,
63 fileName: "preview.pdf", 63 fileName: "preview.pdf",
64 lang: "en", 64 lang: "en",
65 - print: true, 65 + print: false,
66 watermarkOptions: undefined 66 watermarkOptions: undefined
67 } 67 }
68 }); 68 });
......