123
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
const url = "ws://183.222.39.242:8006/mosty-api/mosty-websocket/socket/"; //线上
|
||||
// const url = "ws://192.168.42.212:8006/mosty-api/mosty-websocket/socket/"; //本地
|
||||
const url = "ws://118.122.165.45:35622/mosty-api/mosty-websocket/socket/"; //线上
|
||||
import {
|
||||
getItem
|
||||
} from "@/utils/storage";
|
||||
|
||||
@ -112,24 +112,13 @@ const handleUpdate = () => {
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
emitter.emit("addPointArea", {
|
||||
coords: [{ jd: "104.454064", wd: "31.162123" }],
|
||||
icon: require("@/assets/point/kfd.png"),
|
||||
flag: "st"
|
||||
});
|
||||
// 设置当前日期
|
||||
const today = new Date();
|
||||
data.currentDate = today.toISOString().split("T")[0]; // 格式化为 YYYY-MM-DD
|
||||
|
||||
await getData();
|
||||
|
||||
emitter.on("showFzycInfo", (data) => {
|
||||
taskDetailsRef.value?.open(data?.info);
|
||||
});
|
||||
emitter.emit("setMapCenter", {
|
||||
location: [{ jd: "104.454064", wd: "31.162123" }],
|
||||
zoomLevel: 14
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user