From b1b49a42db04ec1c18aa00c6a996db563aead7df Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Tue, 23 Nov 2021 16:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=8D=87=E7=BA=A7=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-vue/src/pages/node/update.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web-vue/src/pages/node/update.vue b/web-vue/src/pages/node/update.vue index 92744f48b..628eddb41 100644 --- a/web-vue/src/pages/node/update.vue +++ b/web-vue/src/pages/node/update.vue @@ -109,7 +109,9 @@ export default { }, socketUrl() { const protocol = location.protocol === "https:" ? "wss://" : "ws://"; - return `${protocol}${location.host}/node_update?userId=${this.getLongTermToken}&nodeId=system&type=nodeUpdate`; + const domain = window.routerBase; + const url = (domain + "/node_update").replace(new RegExp("//", "gm"), "/"); + return `${protocol}${location.host}${url}?userId=${this.getLongTermToken}&nodeId=system&type=nodeUpdate`; }, }, mounted() {