Browse Source

fix(auth): 优化微信登录回调处理逻辑

将H5环境下的微信授权回调检查从mounted移到created生命周期
在登录成功后添加H5环境下的页面跳转逻辑
master
前端-胡立永 2 days ago
parent
commit
93815a8ea9
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      pages_order/auth/wxLogin.vue

+ 7
- 6
pages_order/auth/wxLogin.vue View File

@ -67,13 +67,10 @@
if(query.path){
this.config = query
}
// #ifdef H5
this.checkWechatAuthCallback();
// #endif
},
// #ifdef H5
mounted() {
// H5URL
this.checkWechatAuthCallback();
},
// #endif
methods: {
//
handleLogin() {
@ -194,6 +191,10 @@
});
return;
} else {
// #ifdef H5
window.location = 'https://h5.budingxiaoshuo.com'
return
// #endif
uni.showToast({
title: '登录成功',
icon: 'success'


Loading…
Cancel
Save