h5/App.vue
@@ -11,13 +11,13 @@ }, methods: { async init() { if (!this.$store.state.userInfo) { let res = await this.$u.api.login({ code: 'ShiXuHui' }) if (res.code === 200) { this.$store.commit('setUserInfo', res.data) } } return // if (!this.$store.state.userInfo) { // let res = await this.$u.api.login({ code: 'ShiXuHui' }) // if (res.code === 200) { // this.$store.commit('setUserInfo', res.data) // } // } // return let code = this.getQueryVariable('code') if (code) { if (!uni.getStorageSync('code')) {