Browse Source

phonelogin登录this指向问题修改

zyh
Aaron 4 years ago
parent
commit
f4a9cd5f38
  1. 2
      pages/authorization/index.vue
  2. 1
      pages/user/Login/index.vue

2
pages/authorization/index.vue

@ -149,7 +149,7 @@ export default {
// uni
uni.login({
provider: provider,
success: async function(loginRes) {
success: async loginRes => {
console.log(loginRes)
let code = loginRes.code // code
cookie.set('wxLoginCode', loginRes.code)

1
pages/user/Login/index.vue

@ -238,6 +238,7 @@
});
});
},
//
async code() {
var that = this;
const {

Loading…
Cancel
Save