diff --git a/src/views/home.vue b/src/views/home.vue index be6e7d1..b62e796 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -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() })