This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user