diff --git a/pages/tabbar/index/index.vue b/pages/tabbar/index/index.vue
index 7df73d5..f12eaca 100644
--- a/pages/tabbar/index/index.vue
+++ b/pages/tabbar/index/index.vue
@@ -16,7 +16,7 @@
-->
-
+
@@ -277,7 +277,8 @@
},
async onLoad() {
await this.$store.dispatch('getCity')
- // console.log('有 啦')
+ console.log('有 啦')
+ console.log(this.$store.state.user.vuex_cityInfo)
// console.log(this.$store.state.user.vuex_cityInfo)
},
diff --git a/store/index.js b/store/index.js
index 50a9fb1..cc030fc 100644
--- a/store/index.js
+++ b/store/index.js
@@ -1,6 +1,6 @@
import Vue from 'vue';
import Vuex from 'vuex';
-import add from './modules/add';
+import school from './modules/school';
import user from './modules/user';
import getters from './getters';
@@ -26,7 +26,7 @@ const store = new Vuex.Store({
},
modules: {
- add,
+ school,
user,
},
});
diff --git a/store/modules/add.js b/store/modules/school.js
similarity index 100%
rename from store/modules/add.js
rename to store/modules/school.js
diff --git a/store/modules/user.js b/store/modules/user.js
index ec63add..93b52c3 100644
--- a/store/modules/user.js
+++ b/store/modules/user.js
@@ -34,6 +34,7 @@ const user = {
getCity({commit}) {
return new Promise((resolve, reject) => {
// #ifdef APP-PLUS||H5
+ console.log('h5经纬度的代码')
getCityInfo(resolve, reject,commit)
// #endif
// #ifdef MP-WEIXIN