feat(map): 人员定位替换成线上地址

master
LiuJiaNan 2026-07-27 17:09:50 +08:00
parent 936a96b184
commit 66a8ebf6f7
1 changed files with 2 additions and 3 deletions

View File

@ -7,9 +7,8 @@ export default function usePeoplePosition(mapMethods, currentBranchOffice, onPeo
const markType = "peoplePosition"; const markType = "peoplePosition";
const points = useRef([]); const points = useRef([]);
// const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:"; 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 = `${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 onMessage = async (message) => { const onMessage = async (message) => {
const data = JSON.parse(message.data); const data = JSON.parse(message.data);