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