feat(map): 人员定位替换成线上地址
parent
936a96b184
commit
66a8ebf6f7
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue