From e79c53156ba36bc3f6e549be547ecc45f295f20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Wed, 6 Mar 2024 07:35:37 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8E=8B=E7=BC=A9=E5=8C=85?= =?UTF-8?q?=20=E8=8E=B7=E5=8F=96=E8=B7=AF=E5=BE=84=E6=96=B9=E6=B3=95=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8E=8B=E7=BC=A9=E5=8C=85=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=B7=AF=E5=BE=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- server/src/main/resources/web/compress.ftl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/main/resources/web/compress.ftl b/server/src/main/resources/web/compress.ftl index add1eb58..d0b5c2fe 100644 --- a/server/src/main/resources/web/compress.ftl +++ b/server/src/main/resources/web/compress.ftl @@ -49,17 +49,15 @@ onClick: chooseNode, } }; - function chooseNode(event, treeId, treeNode) { if (!treeNode.isParent) { - var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}'; + var path = '${baseUrl}' + treeNode.id + "?kkCompressfileKey=" + '${fileTree}'+"&kkCompressfilepath=" + treeNode.id+"&fullfilename="+treeNode.name; location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path)); } } - $(document).ready(function () { var url = '${fileTree}'; - $.ajax({ + $.ajax({ type: "get", url: "${baseUrl}directory?urls="+encodeURIComponent(Base64.encode(url)), success: function (res) {