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:
@@ -325,6 +325,12 @@ export default {
|
||||
}
|
||||
|
||||
try {
|
||||
// 存入 localStorage(loading 页面复用时 onLoad 不会重新触发,需要从 localStorage 读取)
|
||||
localStorage.setItem('__auth_action', 'userinfo');
|
||||
if (this.deviceId) {
|
||||
localStorage.setItem('__auth_device_id', this.deviceId);
|
||||
}
|
||||
|
||||
// 回调地址:必须与微信公众号后台注册地址一致,不能带自定义参数
|
||||
const redirectUri = config.authRedirectUri || (
|
||||
window.location.origin.replace(/^http:/, 'https:') + window.location.pathname
|
||||
|
||||
Reference in New Issue
Block a user