Compare commits

...

3 Commits

Author SHA1 Message Date
kk 6e97047a99 修改注释 2026-07-25 11:30:09 +08:00
kk 4e612b1c12 清除旧的回调标记
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 50s
2026-07-22 10:36:24 +08:00
kk d326912bd3 redirectTo改为reLaunch
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 46s
2026-07-22 10:03:13 +08:00
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -53,7 +53,8 @@
if (state) {
loadingUrl += '&state=' + state;
}
uni.redirectTo({ url: loadingUrl });
// reLaunch 保证 onLoad 一定触发(支付宝回调时当前页可能已是 loading 页)
uni.reLaunch({ url: loadingUrl });
return;
}
+3
View File
@@ -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();