From df2fb27c9dadba60b5851137062ed2030da04e8c Mon Sep 17 00:00:00 2001 From: linju Date: Tue, 21 Feb 2023 18:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=20`uniIdRedirectUrl`=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=A0=E6=95=88=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 | 4 +++- uni_modules/uni-id-pages/common/store.js | 2 +- uni_modules/uni-id-pages/package.json | 2 +- uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue | 4 +++- uni_modules_tools/config.js | 4 +++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-id-pages/changelog.md b/uni_modules/uni-id-pages/changelog.md index 69697f4..d8697ff 100644 --- a/uni_modules/uni-id-pages/changelog.md +++ b/uni_modules/uni-id-pages/changelog.md @@ -1,4 +1,6 @@ -## 1.1.3(2023-02-13) +## 1.1.4(2023-02-21) +- 修复 部分情况下 `uniIdRedirectUrl` 参数无效的问题 +## 1.1.3(2023-02-20) - 修复 非微信小程序端报`TypeError: uni.hideHomeButton is not a function`的问题 ## 1.1.2(2023-02-10) - 新增 微信小程序端 首页需强制登录时,隐藏返回首页按钮 diff --git a/uni_modules/uni-id-pages/common/store.js b/uni_modules/uni-id-pages/common/store.js index 98966d0..6191424 100644 --- a/uni_modules/uni-id-pages/common/store.js +++ b/uni_modules/uni-id-pages/common/store.js @@ -139,7 +139,7 @@ export const mutations = { } if (autoBack) { - this.loginBack(uniIdRedirectUrl) + this.loginBack({uniIdRedirectUrl}) } } diff --git a/uni_modules/uni-id-pages/package.json b/uni_modules/uni-id-pages/package.json index ff20264..8b2e553 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.2", + "version": "1.1.4", "description": "云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户管理", diff --git a/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue b/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue index 0b48260..94ed02a 100644 --- a/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue +++ b/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd.vue @@ -121,7 +121,9 @@ export default { }) }, skip () { - mutations.loginBack(this.uniIdRedirectUrl) + mutations.loginBack({ + uniIdRedirectUrl: this.uniIdRedirectUrl, + }) } } } diff --git a/uni_modules_tools/config.js b/uni_modules_tools/config.js index 25f9972..f1e8449 100644 --- a/uni_modules_tools/config.js +++ b/uni_modules_tools/config.js @@ -27,7 +27,9 @@ } } }, - "/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json": { + "/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json": { + "passwordSecret": "", + "tokenSecret": "", "tokenExpiresIn": 7200, "app": { "oauth": { -- GitLab