h5/App.vue
@@ -10,7 +10,7 @@ for (const q of query) { if (q.indexOf('code=') !== -1) { code = q.substring(q.indexOf('code=') + 5, q.indexOf('&')) code = q.substring(q.indexOf('code=') + 5, q.length) } } that.$u.api.wxAuthorize({ @@ -18,6 +18,9 @@ }).then(res => { if (res.code === 200) { that.$store.commit('setOpenId', res.data.openid) if (res.data.member) { that.$store.commit('setMember', res.data.member) } } }) }