From 33e582e550e26107c2217a49560decbc00b0fe04 Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Wed, 27 Feb 2019 09:54:27 +0800 Subject: [PATCH] 刷新时间修改为3分钟 --- index.html | 2 +- src/views/mapsection.vue | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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) }) }, -- libgit2 0.21.4