From 850b00f46f7ec51798357f8de32610682d62b021 Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Wed, 15 Sep 2021 18:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E4=BB=A3=E7=90=86=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/src/main/java/io/jpom/controller/IndexControl.java | 3 +++ web-vue/public/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/server/src/main/java/io/jpom/controller/IndexControl.java b/modules/server/src/main/java/io/jpom/controller/IndexControl.java index 0c1dcda44..79ed6706d 100644 --- a/modules/server/src/main/java/io/jpom/controller/IndexControl.java +++ b/modules/server/src/main/java/io/jpom/controller/IndexControl.java @@ -69,6 +69,9 @@ public class IndexControl extends BaseServerController { jsCommonContext = FileUtil.readString(file, CharsetUtil.CHARSET_UTF_8); } html = StrUtil.replace(html, "
", jsCommonContext); + // + String proxyPath = UrlRedirectUtil.getHeaderProxyPath(getRequest(), BaseJpomInterceptor.PROXY_PATH); + html = StrUtil.replace(html, "", proxyPath); ServletUtil.write(response, html, ContentType.TEXT_HTML.getValue()); } diff --git a/web-vue/public/index.html b/web-vue/public/index.html index ed81350f4..7251d638b 100644 --- a/web-vue/public/index.html +++ b/web-vue/public/index.html @@ -17,7 +17,7 @@ We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.