Compare commits
2 Commits
v1.0.43
...
6e97047a99
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e97047a99 | |||
| 4e612b1c12 |
+1
-2
@@ -53,8 +53,7 @@
|
||||
if (state) {
|
||||
loadingUrl += '&state=' + state;
|
||||
}
|
||||
// 必须用 reLaunch:支付宝回调时当前页可能就是 loading 页,
|
||||
// redirectTo 到同一页面不会重新触发 onLoad,导致请求卡住
|
||||
// reLaunch 保证 onLoad 一定触发(支付宝回调时当前页可能已是 loading 页)
|
||||
uni.reLaunch({ url: loadingUrl });
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@ export default {
|
||||
this.action = options.action || '';
|
||||
|
||||
// #ifdef H5
|
||||
// 每次进入页面清除旧的回调标记,防止上次异常退出后标记残留导致 startAuth 被跳过
|
||||
uni.removeStorageSync('__auth_callback_done');
|
||||
|
||||
// Mock 模式:跳过微信 OAuth,直接登录
|
||||
if (config.mockWechatLogin && this.action !== 'userinfo') {
|
||||
this.mockLogin();
|
||||
|
||||
Reference in New Issue
Block a user