This commit is contained in:
姚宇浩 2024-09-05 09:34:58 +08:00
parent 24e0d5921f
commit 246a6a7a20
3 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ const initMap = () => {
styleId: "d0acde891abd157741b71e12670ee2e6",
});
goMapCenter([119.116203, 29.078722], 12);
goMapCenter([119.123203, 29.098722], 12);
loadTown();
addPolygonCounty();
};
@ -107,7 +107,7 @@ const goMapCenter = (point, zoom) => {
map.centerAndZoom(new BMapGL.Point(point[0], point[1]), zoom);
};
const loadTown = () => {
for (let v of mapTown.features) {
for (let v of mapTown[0].features) {
if (v.geometry.coordinates.length > 1) {
for (let w in v.geometry.coordinates) {
if (v.geometry.coordinates[w][0].length < 60) continue;

View File

@ -4068,7 +4068,7 @@ const reset_font2 = () => {
"scale(" + width / 1920 + "," + height / 1080 + ")";
};
onMounted(async () => {
// tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
tools.data.set("token", "6b0e380b4a8f46baae4923f83faf670d");
loadingss.value = true;
reset_font();
await getXzsj();

View File

@ -15,8 +15,8 @@ export default defineConfig({
// 第一个代理
"/api": {
// 匹配到啥来进行方向代理
// target: "http://10.0.0.65:8095/", //刘进
target: "http://220.191.238.50:996/", //线上
target: "http://10.0.0.65:8095/", //刘进
// target: "http://220.191.238.50:996/", //线上
changeOrigin: true, //是否支持跨域
//rewrite: (path) => path.replace(/^\/api/, '') // 如果不需要api 直接把路径上的api 替换成空,这个
},