From d326912bd34b657779ebaf99500f840c97e47cfe Mon Sep 17 00:00:00 2001 From: kk <875203880@qq.com> Date: Wed, 22 Jul 2026 10:03:13 +0800 Subject: [PATCH] =?UTF-8?q?redirectTo=E6=94=B9=E4=B8=BAreLaunch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 20abd9f..5727ea7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -53,7 +53,9 @@ if (state) { loadingUrl += '&state=' + state; } - uni.redirectTo({ url: loadingUrl }); + // 必须用 reLaunch:支付宝回调时当前页可能就是 loading 页, + // redirectTo 到同一页面不会重新触发 onLoad,导致请求卡住 + uni.reLaunch({ url: loadingUrl }); return; }