From 59fe18fe34bda9f6fab6be42c707c5f63a1ae7d4 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 24 May 2024 14:59:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/pdfjs/web/viewer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/pdfjs/web/viewer.js b/static/pdfjs/web/viewer.js index 01c08a4d..e96be49a 100644 --- a/static/pdfjs/web/viewer.js +++ b/static/pdfjs/web/viewer.js @@ -2237,12 +2237,12 @@ function webViewerInitialized() { const appConfig = PDFViewerApplication.appConfig; let file; const queryString = decodeURIComponent(document.location.search.substring(1)); - console.log(queryString) - let qs = queryString.replaceAll('+', '%2B') + // console.log(queryString) + // let qs = queryString.replaceAll('+', '%2B') // queryString = queryString.replaceAll('+', '%20') // const params = (0, _ui_utils.parseQueryString)(queryString); // file = params.get("file") ?? _app_options.AppOptions.get("defaultUrl"); - file = qs.replace('file=', '') + file = queryString.replace('file=', '') validateFileURL(file); const fileInput = document.createElement("input"); fileInput.id = appConfig.openFileInputName;