redirectTo改为reLaunch
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 46s

This commit is contained in:
kk
2026-07-22 10:03:13 +08:00
parent be976f939f
commit d326912bd3
+3 -1
View File
@@ -53,7 +53,9 @@
if (state) { if (state) {
loadingUrl += '&state=' + state; loadingUrl += '&state=' + state;
} }
uni.redirectTo({ url: loadingUrl }); // 必须用 reLaunch:支付宝回调时当前页可能就是 loading 页,
// redirectTo 到同一页面不会重新触发 onLoad,导致请求卡住
uni.reLaunch({ url: loadingUrl });
return; return;
} }