loading.vue 的回调处理统一从 localStorage 读取
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 41s

This commit is contained in:
kk
2026-07-11 12:12:53 +08:00
parent 925ebe9bb9
commit 9ecd6d963b
3 changed files with 35 additions and 8 deletions
+7
View File
@@ -60,6 +60,13 @@
} catch (_) {
// state 解析失败,忽略
}
// 存入 localStorage,确保 loading 页面复用时也能获取(redirectTo 可能不触发 onLoad
if (action) {
localStorage.setItem('__auth_action', action);
}
if (callbackDeviceId) {
localStorage.setItem('__auth_device_id', callbackDeviceId);
}
let loadingUrl = '/pages/auth/loading?code=' + encodeURIComponent(code);
if (action) {
loadingUrl += '&action=' + action;