123
This commit is contained in:
16876
package-lock.json
generated
Normal file
16876
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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>
|
||||
|
||||
|
||||
@ -3,8 +3,8 @@ const path = require("path");
|
||||
function resolve(dir) {
|
||||
return path.join(__dirname, dir);
|
||||
}
|
||||
// const serverHost = "http://118.122.165.45:35623";
|
||||
const serverHost = "http://192.168.1.8:8006";
|
||||
const serverHost = "http://118.122.165.45:35623";
|
||||
// const serverHost = "http://192.168.1.8:8006";
|
||||
|
||||
module.exports = {
|
||||
publicPath: "/",
|
||||
|
||||
Reference in New Issue
Block a user