From 66a8ebf6f79d2de3c173898eeedbe27d0cde7d53 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 27 Jul 2026 17:09:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(map):=20=E4=BA=BA=E5=91=98=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E6=9B=BF=E6=8D=A2=E6=88=90=E7=BA=BF=E4=B8=8A=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Container/Map/js/usePeoplePosition.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/Container/Map/js/usePeoplePosition.js b/src/pages/Container/Map/js/usePeoplePosition.js index 4ce5797..1e50a55 100644 --- a/src/pages/Container/Map/js/usePeoplePosition.js +++ b/src/pages/Container/Map/js/usePeoplePosition.js @@ -7,9 +7,8 @@ export default function usePeoplePosition(mapMethods, currentBranchOffice, onPeo const markType = "peoplePosition"; const points = useRef([]); - // const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:"; - // const wsUrl = `${wsProtocol}//${process.env.app.API_HOST.replace(/^https?:\/\//, "")}/personnelPosition/ws/location?corpinfoId=${currentBranchOffice}`; - const wsUrl = `ws://192.168.10.14/personnelPosition/ws/location?corpinfoId=${currentBranchOffice}`; + const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:"; + const wsUrl = `${wsProtocol}//${process.env.app.API_HOST.replace(/^https?:\/\//, "")}/personnelPosition/ws/location?corpinfoId=${currentBranchOffice}`; const onMessage = async (message) => { const data = JSON.parse(message.data);