This commit is contained in:
gcw_IJ7DAiVL
2025-09-10 08:26:56 +08:00
parent dcb91f67c5
commit b2e2ce4343

View File

@ -191,7 +191,7 @@ export default {
this.clear()
},
async getMapOption() {
await fetch('/config/map.json')
await fetch('./config/map.json')
.then((response) => {
return response.json()
})
@ -278,7 +278,7 @@ export default {
// const shpJson = await shp(shpBuffer); // {features: [...]}
// 1. 读取本地 jeojson
const shpBuffer = await fetch('/config/dao.geojson')
const shpBuffer = await fetch('./config/dao.geojson')
.then((response) => {
return response.json()
})
@ -310,7 +310,7 @@ export default {
},
// 弹框
async openDialog() {
await fetch('/data/minTurnRadius.json')
await fetch('./data/minTurnRadius.json')
.then((response) => {
return response.json()
})