提交 f7cdf96b 编写于 作者: DCloud_JSON's avatar DCloud_JSON

1.1.9 修复 跳转至登录页面的url参数包含`uniIdRedirectUrl`后无法返回的问题

上级 101338a5
## 1.1.9(2023-03-24)
- 修复 跳转至登录页面的url参数包含`uniIdRedirectUrl`后无法返回的问题
## 1.1.8(2023-03-02)
- 修复 调试模式下没有对微信授权手机号登录方式进行配置检测
## 1.1.7(2023-02-27)
......
......@@ -64,10 +64,7 @@ export const mutations = {
store.userInfo = Object.assign({},userInfo)
store.hasLogin = Object.keys(store.userInfo).length != 0
// console.log('store.userInfo', store.userInfo);
uni.setStorage({
key: "uni-id-pages-userInfo",
data:store.userInfo
})
uni.setStorageSync('uni-id-pages-userInfo', store.userInfo)
return data
},
async logout() {
......@@ -100,7 +97,7 @@ export const mutations = {
})
// console.log('判断需要返回几层:', delta);
if (uniIdRedirectUrl) {
return uni.reLaunch({
return uni.redirectTo({
url: uniIdRedirectUrl
})
}
......
......@@ -86,7 +86,7 @@ export default async function () {
// console.log('getPushClientId', res);
},
fail (e) {
console.log(e)
// console.log(e)
}
})
}
......
{
"id": "uni-id-pages",
"displayName": "uni-id-pages",
"version": "1.1.8",
"version": "1.1.9",
"description": "云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [
"用户管理",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册