loading.vue 的回调处理统一从 localStorage 读取
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 41s
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 41s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user