bicycle/App.vue
@@ -6,6 +6,7 @@ }, onLaunch: function() { var that = this; console.log(JSON.stringify(this.userInfo)) if (JSON.stringify(this.userInfo) == '{}') { uni.login({ provider: 'weixin', @@ -15,11 +16,12 @@ if (res.code === 200) { that.$store.commit('setToken', res.data.token) that.$store.commit('setUserInfo', res.data.userResponse) console.log('1') that.$isResolve() } } }); } else { that.$isResolve() } }, onShow: function() {