修改授权逻辑
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 48s

This commit is contained in:
kk
2026-07-11 10:28:43 +08:00
parent 0fc854cd33
commit 7b2e4dc72e
4 changed files with 226 additions and 79 deletions
+5 -1
View File
@@ -46,8 +46,12 @@
const code = urlParams.get('code');
if (code) {
// 有 code → 进入授权 Loading 页处理,保留 code 参数
// 有 code → 进入授权 Loading 页处理,保留 code/action/device_id 参数
const action = urlParams.get('action') || '';
let loadingUrl = '/pages/auth/loading?code=' + encodeURIComponent(code);
if (action) {
loadingUrl += '&action=' + action;
}
if (deviceId) {
loadingUrl += '&device_id=' + deviceId;
}