This commit is contained in:
13684185576
2025-11-06 11:42:13 +08:00
parent d127865f14
commit da6c07de87
4 changed files with 16880 additions and 14 deletions

16876
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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 { import {
getItem getItem
} from "@/utils/storage"; } from "@/utils/storage";

View File

@ -112,24 +112,13 @@ const handleUpdate = () => {
}; };
onMounted(async () => { onMounted(async () => {
emitter.emit("addPointArea", {
coords: [{ jd: "104.454064", wd: "31.162123" }],
icon: require("@/assets/point/kfd.png"),
flag: "st"
});
// 设置当前日期 // 设置当前日期
const today = new Date(); const today = new Date();
data.currentDate = today.toISOString().split("T")[0]; // 格式化为 YYYY-MM-DD data.currentDate = today.toISOString().split("T")[0]; // 格式化为 YYYY-MM-DD
await getData(); await getData();
emitter.on("showFzycInfo", (data) => { emitter.on("showFzycInfo", (data) => {
taskDetailsRef.value?.open(data?.info); taskDetailsRef.value?.open(data?.info);
}); });
emitter.emit("setMapCenter", {
location: [{ jd: "104.454064", wd: "31.162123" }],
zoomLevel: 14
});
}); });
</script> </script>

View File

@ -3,8 +3,8 @@ const path = require("path");
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir); return path.join(__dirname, dir);
} }
// const serverHost = "http://118.122.165.45:35623"; const serverHost = "http://118.122.165.45:35623";
const serverHost = "http://192.168.1.8:8006"; // const serverHost = "http://192.168.1.8:8006";
module.exports = { module.exports = {
publicPath: "/", publicPath: "/",