From f7cdf96b1238bea3ed9af0085742de4179857cf7 Mon Sep 17 00:00:00 2001 From: DCloud__JSON Date: Fri, 24 Mar 2023 15:39:39 +0800 Subject: [PATCH] =?UTF-8?q?1.1.9=20=E4=BF=AE=E5=A4=8D=20=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E8=87=B3=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E7=9A=84url?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8C=85=E5=90=AB`uniIdRedirectUrl`=E5=90=8E?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=94=E5=9B=9E=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages/changelog.md | 2 ++ uni_modules/uni-id-pages/common/store.js | 7 ++----- uni_modules/uni-id-pages/init.js | 2 +- uni_modules/uni-id-pages/package.json | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 3ff425a..bf3fd40 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,3 +1,5 @@ +## 1.1.9(2023-03-24) +- 修复 跳转至登录页面的url参数包含`uniIdRedirectUrl`后无法返回的问题 ## 1.1.8(2023-03-02) - 修复 调试模式下没有对微信授权手机号登录方式进行配置检测 ## 1.1.7(2023-02-27) diff --git a/uni_modules/uni-id-pages/common/store.js b/uni_modules/uni-id-pages/common/store.js index 25a07b3..a0bf4b3 100644 --- a/uni_modules/uni-id-pages/common/store.js +++ b/uni_modules/uni-id-pages/common/store.js @@ -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 }) } diff --git a/uni_modules/uni-id-pages/init.js b/uni_modules/uni-id-pages/init.js index 33e7122..c0d1097 100644 --- a/uni_modules/uni-id-pages/init.js +++ b/uni_modules/uni-id-pages/init.js @@ -86,7 +86,7 @@ export default async function () { // console.log('getPushClientId', res); }, fail (e) { - console.log(e) + // console.log(e) } }) } diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index a3e853c..7de415c 100644 --- a/uni_modules/uni-id-pages/package.json +++ b/uni_modules/uni-id-pages/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages", "displayName": "uni-id-pages", - "version": "1.1.8", + "version": "1.1.9", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", -- GitLab