small-program/store/index.js
@@ -16,10 +16,11 @@ statusbarHeight: statusbarHeight || '', userInfo: userInfo || {}, token: token || '', openid: token || '', openid: openid || '', latitude: '', longitude: '' longitude: '', address:'定位中' }, mutations: { // 设置导航栏高度 @@ -46,9 +47,10 @@ }, // 设置经纬度 setPosition(state, obj) { console.log(obj) state.latitude = obj.latitude state.longitude = obj.longitude state.address = obj.address console.log("地址设置完成") }, // 清除缓存数据 empty(state) {