From 59c0f8a423e50987d81fda90f7e016e3853e3b5e Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Tue, 8 Jan 2019 15:16:15 +0800 Subject: [PATCH] vuex --- src/components/chinaMap/index.vue | 4 +--- src/store/index.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/chinaMap/index.vue b/src/components/chinaMap/index.vue index a403bd1..ed5ca5b 100644 --- a/src/components/chinaMap/index.vue +++ b/src/components/chinaMap/index.vue @@ -13,7 +13,7 @@ - +
会员总数
会员总数
@@ -58,9 +58,7 @@ ...mapGetters(['getParkingTotal']) }, mounted() { - this.parkParams.endVal = this.$store.state.ParkingTotal - console.log(this.getParkingTotal) this.mapChart= this.createPie(); const _self=this; //var tmpCount=0; diff --git a/src/store/index.js b/src/store/index.js index 427782b..32417bc 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -6,7 +6,7 @@ import createLogger from 'vuex/dist/logger' Vue.use(Vuex) const state = { - ParkingTotal: 10000 + ParkingTotal: 0 } -- libgit2 0.21.4