From a86b1491298dcc10cb433c57b1d12ef96dce1214 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 18 Nov 2024 13:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/public.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/public.js b/js/public.js index 7098cb0..aec6516 100644 --- a/js/public.js +++ b/js/public.js @@ -181,7 +181,9 @@ function getUrlParam(key) { // 预览文件 function commonViewFile(params) { - let path = fileUrl + params; + let path = fileUrl + params + '?auth=' + sessionStorage.getItem("gz-token"); + // path = fileUrl + params + console.log(path); let encodePath = encodeURIComponent(useBase64.encode64(path)); window.open(viewFileUrl + encodePath + '&token=' + generateToken()); }