From 6efd9cb61a0ee280e4bb2b7588f462527a537af1 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 11 Jul 2024 17:56:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B9=E6=8D=AE=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E5=9C=B0=E5=9D=80=E6=A0=8Fhostname=E5=8A=A033030?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E8=BF=9E=E6=8E=A5=E5=90=8E=E7=AB=AF=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/default/config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/default/config.js b/public/default/config.js index 3b6e9858..7696cf78 100644 --- a/public/default/config.js +++ b/public/default/config.js @@ -11,8 +11,9 @@ */ (function () { // host = ip:port - const host = '192.168.8.100:33030'; - + // const host = '192.168.8.100:33030'; + const host = `${window.location.hostname}:33030`; + // Service Address sessionStorage.setItem('baseUrl', `http://${host}`); // websocket Address