From b529624728824ba394f7eb8e0294b982dc283ee8 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Jun 2022 22:27:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=B8=8A=E6=9E=B6=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/modules.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/modules.js b/src/common/modules.js index 8c423f50..3b788873 100644 --- a/src/common/modules.js +++ b/src/common/modules.js @@ -53,9 +53,12 @@ export const config = { } }, getCode({state, dispatch}, tryAgentSign = false) { - let {corpid: corpId} = state, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_base" + let {corpid: corpId, suiteId} = state, url = location.href, REDIRECT_URI = encodeURIComponent(url), scope = "snsapi_base" if (/\/AppForm\//.test(location.search)) { scope = "snsapi_userinfo" + } else if (suiteId) { + corpId = suiteId + scope = "snsapi_privateinfo" } return new Promise((resolve, reject) => { if (corpId && scope) {