Skip to content

Commit 88b565f

Browse files
committed
fix: 企业微信扫码信息配置错误
--bug=1050048 --user=王孝刚 【企业微信-扫码登录】配置信息错误 https://www.tapd.cn/57709429/s/1626175
1 parent b87c214 commit 88b565f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/views/authentication/component/EditModal.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,14 @@ const open = async (platform: Platform) => {
120120
let defaultCallbackUrl = window.location.origin
121121
switch (platform.key) {
122122
case 'wecom':
123+
if (currentPlatform.config.app_key) {
124+
currentPlatform.config.agent_id = currentPlatform.config.app_key
125+
delete currentPlatform.config.app_key
126+
}
123127
currentPlatform.config.callback_url = `${defaultCallbackUrl}/api/wecom`
124128
break
125129
case 'dingtalk':
126-
if (currentPlatform.config.agent_id && currentPlatform.key === 'dingtalk') {
130+
if (currentPlatform.config.agent_id) {
127131
currentPlatform.config.corp_id = currentPlatform.config.agent_id
128132
delete currentPlatform.config.agent_id
129133
}

0 commit comments

Comments
 (0)