From c8075cfc040b5ea4aa0bfa31706fe77f470d919c Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 18 Nov 2024 09:54:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/public.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/public.js b/js/public.js index 922ab7e..e5670c5 100644 --- a/js/public.js +++ b/js/public.js @@ -1,5 +1,5 @@ -const dataUrl = 'http://127.0.0.1:21995/'; // 数据请求路径 -const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径 +const dataUrl = 'http://192.168.0.14:21999/'; // 数据请求路径 +const fileUrl = 'http://192.168.0.14:21999/statics'; // 文件路径 const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径 const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 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 2/2] =?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()); }