From 6e1148ffc9a1b6937d1a5de298faee81e28f47a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=95=BF=E9=B8=A3?= Date: Tue, 6 Jun 2023 23:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=8E=8B=E7=BC=A9=E5=8C=85?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E7=82=B9=E5=87=BB=E7=9A=84?= =?UTF-8?q?=E6=98=AF=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95=EF=BC=88=E6=A0=91?= =?UTF-8?q?=E8=8A=82=E7=82=B9=EF=BC=89=EF=BC=8C=E9=A1=B5=E9=9D=A2=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E3=80=82=E6=89=80=E4=BB=A5=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=8F=B6=E5=AD=90?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=89=8D=E5=8E=BB=E9=A2=84=E8=A7=88=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/resources/web/compress.ftl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/main/resources/web/compress.ftl b/server/src/main/resources/web/compress.ftl index e253a61c..e80c66c3 100644 --- a/server/src/main/resources/web/compress.ftl +++ b/server/src/main/resources/web/compress.ftl @@ -51,8 +51,10 @@ }; function chooseNode(event, treeId, treeNode) { - var path = '${baseUrl}' + treeNode.id +"?fileKey="+'${fileName}'; - location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path)); + if (!treeNode.isParent) { + var path = '${baseUrl}' + treeNode.id + "?fileKey=" + '${fileName}'; + location.href = "${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode(path)); + } } $(document).ready(function () {