diff --git a/index.html b/index.html index ee371f5..1c26477 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + 赤峰停车运营监控中心 diff --git a/src/views/mapsection.vue b/src/views/mapsection.vue index f1a8a5d..bee6e78 100644 --- a/src/views/mapsection.vue +++ b/src/views/mapsection.vue @@ -99,9 +99,10 @@ export default { }).then((response)=>{ const data = response.data.data console.log(data) - this.parkList = data - console.log(data) - this.firstItem = data[0].id + const newData = data.filter(item => item.areaName.indexOf('测试') < 0) + this.parkList = newData + console.log(newData) + this.firstItem = newData[0].id this.currentPark(this.firstItem,0) }) },