清除旧的回调标记
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 50s

This commit is contained in:
kk
2026-07-22 10:36:24 +08:00
parent d326912bd3
commit 4e612b1c12
+3
View File
@@ -24,6 +24,9 @@ export default {
this.action = options.action || ''; this.action = options.action || '';
// #ifdef H5 // #ifdef H5
// 每次进入页面清除旧的回调标记,防止上次异常退出后标记残留导致 startAuth 被跳过
uni.removeStorageSync('__auth_callback_done');
// Mock 模式:跳过微信 OAuth,直接登录 // Mock 模式:跳过微信 OAuth,直接登录
if (config.mockWechatLogin && this.action !== 'userinfo') { if (config.mockWechatLogin && this.action !== 'userinfo') {
this.mockLogin(); this.mockLogin();