This commit is contained in:
parent
24e0d5921f
commit
246a6a7a20
|
@ -97,7 +97,7 @@ const initMap = () => {
|
||||||
styleId: "d0acde891abd157741b71e12670ee2e6",
|
styleId: "d0acde891abd157741b71e12670ee2e6",
|
||||||
});
|
});
|
||||||
|
|
||||||
goMapCenter([119.116203, 29.078722], 12);
|
goMapCenter([119.123203, 29.098722], 12);
|
||||||
loadTown();
|
loadTown();
|
||||||
addPolygonCounty();
|
addPolygonCounty();
|
||||||
};
|
};
|
||||||
|
@ -107,7 +107,7 @@ const goMapCenter = (point, zoom) => {
|
||||||
map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom);
|
map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom);
|
||||||
};
|
};
|
||||||
const loadTown = () => {
|
const loadTown = () => {
|
||||||
for (let v of mapTown.features) {
|
for (let v of mapTown[0].features) {
|
||||||
if (v.geometry.coordinates.length > 1) {
|
if (v.geometry.coordinates.length > 1) {
|
||||||
for (let w in v.geometry.coordinates) {
|
for (let w in v.geometry.coordinates) {
|
||||||
if (v.geometry.coordinates[w][0].length < 60) continue;
|
if (v.geometry.coordinates[w][0].length < 60) continue;
|
||||||
|
|
|
@ -4068,7 +4068,7 @@ const reset_font2 = () => {
|
||||||
"scale(" + width / 1920 + "," + height / 1080 + ")";
|
"scale(" + width / 1920 + "," + height / 1080 + ")";
|
||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
|
||||||
loadingss.value = true;
|
loadingss.value = true;
|
||||||
reset_font();
|
reset_font();
|
||||||
await getXzsj();
|
await getXzsj();
|
||||||
|
|
|
@ -15,8 +15,8 @@ export default defineConfig({
|
||||||
// 第一个代理
|
// 第一个代理
|
||||||
"/api": {
|
"/api": {
|
||||||
// 匹配到啥来进行方向代理
|
// 匹配到啥来进行方向代理
|
||||||
// target: "http://10.0.0.65:8095/", //刘进
|
target: "http://10.0.0.65:8095/", //刘进
|
||||||
target: "http://220.191.238.50:996/", //线上
|
// target: "http://220.191.238.50:996/", //线上
|
||||||
changeOrigin: true, //是否支持跨域
|
changeOrigin: true, //是否支持跨域
|
||||||
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
|
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue