From 7fb4aa8b9dd4d6b804b2451f48376bc0246cada8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=90=E6=B5=AA=E4=BA=BA?= Date: Sun, 12 Feb 2023 07:30:45 +0800 Subject: [PATCH] Update StartConfig.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复非80端口下载问题 --- src/main/java/top/panll/assist/config/StartConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/top/panll/assist/config/StartConfig.java b/src/main/java/top/panll/assist/config/StartConfig.java index 1b03676..2c6bf45 100644 --- a/src/main/java/top/panll/assist/config/StartConfig.java +++ b/src/main/java/top/panll/assist/config/StartConfig.java @@ -114,7 +114,7 @@ private void writeAssistDownPage(File recordFile) { " (function(){\n" + " let searchParams = new URLSearchParams(location.search);\n" + " var download = document.getElementById(\"download\");\n" + - " download.setAttribute(\"href\", searchParams.get(\"url\"))\n" + + " download.setAttribute(\"href\",window.location.origin+'/'+ searchParams.get(\"url\"))\n" + " download.click()\n" + " setTimeout(()=>{\n" + " window.location.href=\"about:blank\";\n" +