修复无感token、处理离线底图、优化实时调用

main
许宏杰 1 week ago
parent 9dc0ebc706
commit 665b8f6db2

@ -6,7 +6,8 @@ ENV = 'development'
# 云坤地图/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.91/gps-web/api'
VUE_APP_BASE_API = 'http://39.101.188.84:9066'
# VUE_APP_BASE_API = 'http://39.101.188.84:9066'
VUE_APP_BASE_API = 'http://192.168.0.77:9066'
VUE_APP_BASE_API_YUNKUN = 'http://192.168.0.91/gps-web/api'
# 路由懒加载

@ -17,8 +17,17 @@ import { download } from "@/utils/request";
import "./assets/icons"; // icon
import "./permission"; // permission control
// import 'leaflet/dist/leaflet.css' // leaflet样式
// import L from "leaflet";
// 引入Leaflet对象 挂载到Vue上便于全局使用也可以单独页面中单独引用
import "leaflet/dist/leaflet.css";
import * as L from "leaflet";
/* leaflet icon */
delete L.Icon.Default.prototype._getIconUrl;
L.Icon.Default.mergeOptions({
iconRetinaUrl: require("leaflet/dist/images/marker-icon-2x.png"),
iconUrl: require("leaflet/dist/images/marker-icon.png"),
shadowUrl: require("leaflet/dist/images/marker-shadow.png"),
});
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";

@ -80,18 +80,18 @@ export const constantRoutes = [
name: "Index",
meta: { title: "首页", icon: "dashboard", affix: true },
},
// {
// path: "/AboutView",
// component: () => import("@/views/lijinlong/AboutView"),
// name: "Index",
// meta: { title: "3d", icon: "dashboard", affix: true },
// },
// {
// path: "/cityDimension",
// component: () => import("@/views/cityDimension"),
// name: "cityDimension",
// meta: { title: "姑苏二维", icon: "dashboard", affix: true },
// },
{
path: "/HomeView",
component: () => import("@/views/lijinlong/HomeView"),
name: "Index",
meta: { title: "3d", icon: "dashboard", affix: true },
},
{
path: "/cityDimension",
component: () => import("@/views/cityDimension"),
name: "cityDimension",
meta: { title: "姑苏二维", icon: "dashboard", affix: true },
},
{
path: "/car",
component: () => import("@/views/car"),

@ -19,7 +19,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API_YUNKUN,
// 超时
timeout: 10000,
timeout: 30000,
});
// request拦截器
@ -108,15 +108,21 @@ service.interceptors.response.use(
return res.data;
}
//接口调取失败 -- sessionId
if (code == 200 && res.data.rspCode == 0 && !isRefreshRequest(res.config)) {
let noToke = false;
if (res.data.rspDesc) {
noToke = res.data.rspDesc.includes("登录会话");
}
// console.log(res.data.rspCode);
if (res.data.rspCode == 0 && !isRefreshRequest(res.config)) {
const isSucceed = await refreshToken();
if (isSucceed) {
//重新给接口中的sessionId赋值
const sessionId = localStorage.getItem("SESSION_ID");
res.config.url = res.config.url.replace(
/(sessionId=)[^\&]+/,
"$1" + sessionId
);
console.log(res.config.url, "无token");
res.config.url = addSessionId(res.config.url, sessionId);
console.log(res.config.url, "处理后");
let result = await service.request(res.config); //重新请求
return result;
} else {
@ -174,6 +180,23 @@ service.interceptors.response.use(
}
);
function addSessionId(url, sessionIdValue) {
// 正则表达式检查是否已经有 sessionId 参数
const sessionIdPattern = /[?&]sessionId=/;
// 如果已经包含 sessionId 参数,直接返回原 URL
if (sessionIdPattern.test(url)) {
return url;
}
// 添加 sessionId 参数到 URL 的末尾
if (url.includes("?")) {
return url + `&sessionId=${sessionIdValue}`;
} else {
return url + `?sessionId=${sessionIdValue}`;
}
}
// 通用下载方法
export function download(url, params, filename, config) {
downloadLoadingInstance = Loading.service({

@ -103,18 +103,18 @@ export default {
contextmenu: { preventDefault: false, hasDefault: false },
},
basemaps: [
// {
// name: "mapbox",
// icon: "img/basemaps/mapboxSatellite.png",
// type: "mapbox",
// username: "sharealex",
// styleId: "cly5i21fn00e901prgq643t4r",
// token:
// "pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
// tilesize: 256,
// scaleFactor: false,
// show: false,
// },
{
name: "mapbox影像图",
icon: "img/basemaps/mapboxSatellite.png",
type: "mapbox",
username: "sharealex",
styleId: "cly5i21fn00e901prgq643t4r",
token:
"pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
tilesize: 256,
scaleFactor: false,
show: false,
},
],
},
show: false,

@ -24,6 +24,7 @@
>
{{ item.carName }}
</div>
<div class="no-data" v-show="searchText">{{ searchText }}</div>
</div>
</el-collapse-transition>
</div>
@ -62,12 +63,13 @@ export default {
const basePathUrl = window.basePathUrl || "";
return {
searchList: [],
searchText: "",
searchQuery: {
carPlate: undefined, //
plateColor: undefined, //
},
carQuery: {
teamId: "", //carIds,
teamId: 2, //carIds,
carIds: "", //id teamId
},
list: [],
@ -99,10 +101,31 @@ export default {
showSkyBox: false,
showSun: false,
},
control: {
contextmenu: { preventDefault: false, hasDefault: false },
},
basemaps: [
{
name: "影像地图",
type: "xyz",
url: "/map/{z}/{y}/{x}.png",
minimumLevel: 1,
maximumLevel: 16,
show: true,
},
// {
// name: "mapbox",
// icon: "img/basemaps/mapboxSatellite.png",
// type: "mapbox",
// username: "sharealex",
// styleId: "cly5i21fn00e901prgq643t4r",
// token:
// "pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
// tilesize: 256,
// scaleFactor: false,
// show: true,
// },
],
},
show: false,
showVideo: true,
@ -121,6 +144,18 @@ export default {
document.addEventListener("click", this.handleClickOutside);
},
methods: {
/**获取车辆接口 */
async carPoint() {
let res = await getCarPoint(this.carQuery);
// console.log(res.list);
// res.list = res.list.filter(
// (item) =>
// item.carPlate.includes("E") ||
// (item.carPlate.includes("U") && item.stateCn.includes("线-"))
// );
return res.list;
},
/**
* 加载姑苏区三维图层
*/
@ -161,34 +196,27 @@ export default {
this.createCar();
},
/**创建车辆 */
createCar() {
let list = [
{
name: "001号线_01_早送_守押001_苏E",
position: [120.608163, 31.184288, 13.5],
},
{
name: "002号线_01_维护_守押085_苏E",
position: [120.607528, 31.209201, 11.1],
},
{
name: "临时任务_考试院_守押072_苏E123",
position: [120.657466, 31.220895, 12.7],
},
];
async createCar(type) {
this.list = await this.carPoint();
this.mapLayer.car.clear();
this.mapLayer.car.enabledEvent = false; // addGraphic
for (let index = 0; index < list.length; index++) {
let item = list[index];
for (let index = 0; index < this.list.length; index++) {
let item = this.list[index];
const graphic = new mars3d.graphic.ModelEntity({
id: `car${index + 1}`,
position: item.position,
id: `car${item.carId}`,
// position: new mars3d.LngLatPoint(
// parseFloat(item.lng),
// parseFloat(item.lat),
// 30
// ),
style: {
url: this.carUrl,
scale: 0.5,
minimumPixelSize: 30,
silhouette: true,
silhouetteColor: "#008cff",
pitch: 0, //
roll: 0, //
highlight: {
type: "click",
silhouette: true,
@ -206,19 +234,16 @@ export default {
},
},
attr: {
index: index + 1,
index: item.carId,
},
});
this.mapLayer.car.addGraphic(graphic);
this.mapLayer.car.enabledEvent = true; //
graphic.bindPopup(
() => {
let html = `<div id="car${index + 1}" class="carPlate">
<img src="${require(`../assets/images/carType${
index + 1
}.png`)}" class="carType"/>
${item.name}
let html = `<div id="car${item.carId}" class="carPlate">
<img src="${require(`../assets/images/carType${1}.png`)}" class="carType"/>
${item.carPlate}
</div>`;
return html;
},
@ -242,7 +267,7 @@ export default {
this.handleCarActive({
id: e.target._id,
color: "#FFB200",
image: require(`../assets/images/carType${e.target.attr.index}-s.png`),
image: require(`../assets/images/carType1-s.png`),
});
});
graphic.on(mars3d.EventType.highlightClose, (e) => {
@ -254,71 +279,114 @@ export default {
this.handleCarActive({
id: e.target._id,
color: "#008cff",
image: require(`../assets/images/carType${e.target.attr.index}.png`),
image: require(`../assets/images/carType1.png`),
});
});
this.$nextTick(() => {
if (type) {
console.log(type);
//
graphic.openHighlight();
}
});
graphic.on(mars3d.EventType.click, (e) => {
this.$router.push({
path: "/carInfo",
// query: { carId: e.target.id },
query: { carId: e.target.attr.index },
});
});
// //
// this.changePosition(0);
// // setInterval
// const interval = 30;
// this.changePosition(interval);
// this.time = setInterval(() => {
// this.changePosition(interval);
// }, interval * 1000);
}
// setInterval
this.changePosition(0);
const interval = 15;
this.changePosition(interval);
this.time = setInterval(() => {
this.changePosition(interval);
}, interval * 1000);
},
changePosition(time) {
async changePosition(interval) {
let list = await this.carPoint();
this.mapLayer.car.eachGraphic((graphic) => {
graphic.addDynamicPosition(this.randomPoint(), time); // time
let carItam = list.filter((car) => `car${car.carId}` == graphic.id);
if (carItam.length > 0) {
let position = Cesium.Cartesian3.fromDegrees(
parseFloat(carItam[0].lng),
parseFloat(carItam[0].lat),
30
);
graphic.addDynamicPosition(position, interval); // time
}
});
},
randomPoint() {
const jd = this.random(120.2 * 1000, 120.9 * 1000) / 1000;
const wd = this.random(30.9 * 1000, 31.6 * 1000) / 1000;
return Cesium.Cartesian3.fromDegrees(jd, wd, 30);
},
random(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
},
// randomPoint() {
// const jd = this.random(120.2 * 1000, 120.9 * 1000) / 1000;
// const wd = this.random(30.9 * 1000, 31.6 * 1000) / 1000;
// return Cesium.Cartesian3.fromDegrees(jd, wd, 30);
// },
// random(min, max) {
// return Math.floor(Math.random() * (max - min + 1) + min);
// },
/**
* 处理车辆被选中
*/
handleCarActive(data) {
let carItem = document.getElementById(data.id);
// console.log(data, carItem);
let carIcon = carItem.getElementsByClassName("carType")[0];
carIcon.src = data.image;
carItem.style.borderColor = data.color;
},
/**搜索 */
handleSearch() {
this.searchList = [
{
carName: "002号线_01_维护_守押085_苏E",
position: [120.607528, 31.209201, 11.1],
},
];
/**根据车牌号查询车辆实时定位 */
async handleSearch() {
if (!this.searchQuery.carPlate) return;
//
if (this.timer) clearInterval(this.timer);
const result = await getCarByCarplate(this.searchQuery);
if (result.list) {
this.searchList = result.list;
} else {
this.searchText = result.rspDesc;
}
this.show = !this.show;
this.show = true;
},
/**单击搜索结果 */
handelLookCar(item) {
let carItem = this.mapLayer.car.getGraphicById(`car2`);
carItem.openHighlight();
this.map.flyToPoint(item.position, {
radius: 3788,
this.carQuery.teamId = undefined;
this.carQuery.carIds = item.carId;
this.map.flyToPoint(
new mars3d.LngLatPoint(parseFloat(item.lng), parseFloat(item.lat))
);
this.createCar(true);
this.show = false;
},
/**
* 清除操作
*/
inputClear() {
if (!this.searchQuery.carPlate) return;
if (this.timer) clearInterval(this.timer);
this.searchList = [];
this.searchText = "";
this.searchQuery = {
carPlate: undefined, //
plateColor: undefined, //
};
this.carQuery = {
teamId: 2, //carIds,
carIds: "", //id teamId
};
this.mapLayer.car.eachGraphic((graphic) => {
graphic.closeHighlight();
});
this.show = !this.show;
this.createCar();
this.show = false;
},
toggleSelection(item) {
@ -407,11 +475,13 @@ export default {
outline: none;
}
.search-list {
position: relative;
width: 280px;
background: #032b57;
color: #fff;
border: 1px solid #0084ff;
border-top: 0;
min-height: 150px;
& > div {
cursor: pointer;
font-size: 14px;
@ -420,6 +490,19 @@ export default {
& > div:hover {
background: #0084ff;
}
.no-data {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.no-data:hover {
background: transparent;
}
}
}
.video-list {

@ -27,7 +27,7 @@
import MarsMap from "@/components/mars-map";
import grids from "@/components/grids.vue";
import { getCarIdInfo } from "@/api/yunkun/index.js";
import { historyLine, carMidle } from "@/api/yunkun/yunkun.js";
import { historyLine, carMidle, getCarPoint } from "@/api/yunkun/yunkun.js";
export default {
data() {
const basePathUrl = window.basePathUrl || "";
@ -55,6 +55,28 @@ export default {
control: {
contextmenu: { preventDefault: false, hasDefault: false },
},
basemaps: [
{
name: "影像地图",
type: "xyz",
url: "/map/{z}/{y}/{x}.png",
minimumLevel: 1,
maximumLevel: 16,
show: true,
},
// {
// name: "mapbox",
// icon: "img/basemaps/mapboxSatellite.png",
// type: "mapbox",
// username: "sharealex",
// styleId: "cly5i21fn00e901prgq643t4r",
// token:
// "pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
// tilesize: 256,
// scaleFactor: false,
// show: false,
// },
],
},
Line: [],
carUrl: basePathUrl + "static/qiche.gltf",
@ -62,7 +84,17 @@ export default {
},
components: { MarsMap, grids },
beforeDestroy() {},
created() {},
created() {
const { startOfDay, endOfDay } = this.getStartAndEndOfDayFormatted(true);
this.queryParams = {
carId: this.$route.query.carId,
startTime: startOfDay,
endTime: endOfDay,
};
},
beforeDestroy() {
clearInterval(this.timer);
},
methods: {
/**地图渲染完毕 */
mapLoad(map) {
@ -109,16 +141,10 @@ export default {
}
},
// 线 --
createLine() {
this.Line = [
[120.60011, 31.26247],
[120.599811, 31.267667],
[120.599341, 31.27582],
[120.59705, 31.278812],
[120.599466, 31.279271],
[120.61856, 31.28155],
[120.642973, 31.284112],
];
async createLine() {
let result = await historyLine(this.queryParams);
this.Line = result.list;
const marker = new mars3d.graphic.BillboardEntity({
position: this.Line[0],
style: {
@ -131,7 +157,6 @@ export default {
},
});
this.mapLayer.Line.addGraphic(marker);
const line = new mars3d.graphic.PolylineEntity({
positions: this.Line,
style: {
@ -144,25 +169,22 @@ export default {
},
});
this.mapLayer.Line.addGraphic(line);
const lastPoint = this.Line[this.Line.length - 1];
//
this.map.flyToPoint(
new mars3d.LngLatPoint(
parseFloat(lastPoint.lng),
parseFloat(lastPoint.lat)
)
);
},
//
async createCar() {
const lastPoint = this.Line[this.Line.length - 1];
const car = new mars3d.graphic.FixedRoute({
id: this.queryParams.carId,
name: "漫游对象",
speed: 45,
positions: [
lastPoint,
[120.6554, 31.285252, 13.6],
[120.654003, 31.298916, 10.8],
[120.649845, 31.299078, 14.2],
[120.647362, 31.308061, 17.4],
[120.645631, 31.314448, 16.1],
[120.638285, 31.312808, 10],
],
// positions: [[parseFloat(lastPoint.lng), parseFloat(lastPoint.lat)]],
// camera: {
// type: "gs",
// heading: 0,
@ -175,6 +197,9 @@ export default {
minimumPixelSize: 30,
silhouette: true,
silhouetteColor: "#FFB200",
pitch: 0,
roll: 0,
// heading: parseFloat(lastPoint.drct),
},
circle: {
radius: 200,
@ -195,11 +220,38 @@ export default {
},
});
this.mapLayer.car.addGraphic(car);
let res = await getCarIdInfo("1328CC51-C858-4FFA-8714-4F354BB49CF8");
// let res = await getCarIdInfo("1328CC51-C858-4FFA-8714-4F354BB49CF8");
// this.bindPopup(car, res.data);
// car.openPopup();
// car.start();
this.bindPopup(car, res.data);
car.openPopup();
car.start();
const interval = 15;
this.changePosition(interval);
this.time = setInterval(() => {
this.changePosition(interval);
}, interval * 1000);
},
async changePosition(interval) {
let list = await this.carPoint();
let carItem = this.mapLayer.car.getGraphicById(this.queryParams.carId);
// carItem.model.heading = parseFloat(list[0].drct);
// console.log(carItem.model.heading, "sss");
//StyleOptions({
// heading:parseFloat(list[0].drct)
// })
let position = Cesium.Cartesian3.fromDegrees(
parseFloat(list[0].lng),
parseFloat(list[0].lat),
30
);
carItem.addDynamicPosition(position, interval);
},
/**获取车辆接口 */
async carPoint() {
let res = await getCarPoint({
carIds: this.queryParams.carId,
});
return res.list;
},
//
@ -251,6 +303,47 @@ export default {
// closeButton: false,
});
},
getStartAndEndOfDayFormatted(boole) {
const now = new Date();
const startOfDay = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
0,
0,
0
);
const endOfDay = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
23,
59,
59,
999
);
return {
startOfDay: this.formatDate(startOfDay, boole),
endOfDay: this.formatDate(endOfDay, boole),
};
},
formatDate(date, boole) {
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0"); // 01
const day = String(date.getDate()).padStart(2, "0");
const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0");
const seconds = String(date.getSeconds()).padStart(2, "0");
if (boole) {
return `${year}${month}${day}${hours}${minutes}${seconds}`;
} else {
return `${year}${month}${day}`;
}
},
},
};
</script>

@ -43,17 +43,13 @@ export default {
],
});
L.tileLayer(
"https://api.mapbox.com/styles/v1/sharealex/cllg9dw1i00iz01oj9zmu6iv7/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
{
maxZoom: 9,
noWrap: true,
bounds: [
[-90, -180],
[90, 180],
],
}
).addTo(this.map);
L.tileLayer("//192.168.0.77/map/{z}/{y}/{x}.png", {
noWrap: true,
bounds: [
[-90, -180],
[90, 180],
],
}).addTo(this.map);
this.map.createPane("mapLayer1");
this.map.getPane("mapLayer1").style.zIndex = 501;

@ -41,19 +41,28 @@ export default {
control: {
contextmenu: { preventDefault: false, hasDefault: false },
},
basemaps: [
{
name: "mapbox影像图",
icon: "img/basemaps/mapboxSatellite.png",
type: "mapbox",
username: "sharealex",
styleId: "cly5i21fn00e901prgq643t4r",
token:
"pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
tilesize: 256,
scaleFactor: false,
name: "影像地图",
type: "xyz",
url: "/map/{z}/{y}/{x}.png",
minimumLevel: 1,
maximumLevel: 16,
show: true,
},
// {
// name: "mapbox",
// icon: "img/basemaps/mapboxSatellite.png",
// type: "mapbox",
// username: "sharealex",
// styleId: "cly5i21fn00e901prgq643t4r",
// token:
// "pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw",
// tilesize: 256,
// scaleFactor: false,
// show: true,
// },
],
},
mapLayer: {},

@ -25,7 +25,9 @@ export default {
};
},
created() {},
// mounted() { this.initMap() },
mounted() {
this.initMap();
},
methods: {
initMap() {
this.globalMap = L.map("leafletMap", {
@ -49,28 +51,28 @@ export default {
}
).addTo(this.globalMap);
//
this.globalMap.createPane("provinceLayer");
this.globalMap.getPane("provinceLayer").style.zIndex = 504;
this.globalMap.getPane("provinceLayer").style.pointerEvents = "none";
this.layerObj.provinceLayer = L.layerGroup().addTo(this.globalMap);
//
this.globalMap.createPane("provinceLayer3");
this.globalMap.getPane("provinceLayer3").style.zIndex = 505;
this.globalMap.getPane("provinceLayer3").style.pointerEvents = "none";
this.layerObj.provinceLayer3 = L.layerGroup().addTo(this.globalMap);
// 64
this.globalMap.createPane("provinceLayer2");
this.globalMap.getPane("provinceLayer2").style.zIndex = 505;
this.globalMap.getPane("provinceLayer2").style.pointerEvents = "none";
this.layerObj.provinceLayer2 = L.layerGroup().addTo(this.globalMap);
// //
// this.globalMap.createPane("provinceLayer");
// this.globalMap.getPane("provinceLayer").style.zIndex = 504;
// this.globalMap.getPane("provinceLayer").style.pointerEvents = "none";
// this.layerObj.provinceLayer = L.layerGroup().addTo(this.globalMap);
// //
// this.globalMap.createPane("provinceLayer3");
// this.globalMap.getPane("provinceLayer3").style.zIndex = 505;
// this.globalMap.getPane("provinceLayer3").style.pointerEvents = "none";
// this.layerObj.provinceLayer3 = L.layerGroup().addTo(this.globalMap);
// // 64
// this.globalMap.createPane("provinceLayer2");
// this.globalMap.getPane("provinceLayer2").style.zIndex = 505;
// this.globalMap.getPane("provinceLayer2").style.pointerEvents = "none";
// this.layerObj.provinceLayer2 = L.layerGroup().addTo(this.globalMap);
this.globalMap.createPane("provinceLayer4");
this.globalMap.getPane("provinceLayer4").style.zIndex = 505;
this.globalMap.getPane("provinceLayer4").style.pointerEvents = "none";
this.layerObj.provinceLayer4 = L.layerGroup().addTo(this.globalMap);
// this.globalMap.createPane("provinceLayer4");
// this.globalMap.getPane("provinceLayer4").style.zIndex = 505;
// this.globalMap.getPane("provinceLayer4").style.pointerEvents = "none";
// this.layerObj.provinceLayer4 = L.layerGroup().addTo(this.globalMap);
this.provinceLayer();
// this.provinceLayer();
},
provinceLayer() {
this.mygeojson = L.geoJSON(china, {

@ -41,6 +41,12 @@ module.exports = {
["^" + process.env.VUE_APP_BASE_API]: "",
},
},
"/map": {
target: `http://192.168.0.77/map`,
pathRewrite: {
"^/map": "",
},
},
},
disableHostCheck: true,
},

Loading…
Cancel
Save