From 488f42a9e437264549e46d24137a4a3df7852ec4 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 6 Dec 2024 14:42:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E4=BF=A1=E6=81=AF=E9=85=8D=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1050048 --user=王孝刚 【企业微信-扫码登录】配置信息错误 https://www.tapd.cn/57709429/s/1626175 (cherry picked from commit 88b565fe6dd65599a079c6a2d0304294c0446628) --- ui/src/views/authentication/component/EditModal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/views/authentication/component/EditModal.vue b/ui/src/views/authentication/component/EditModal.vue index 2bc9fb279..917bd0147 100644 --- a/ui/src/views/authentication/component/EditModal.vue +++ b/ui/src/views/authentication/component/EditModal.vue @@ -120,10 +120,14 @@ const open = async (platform: Platform) => { let defaultCallbackUrl = window.location.origin switch (platform.key) { case 'wecom': + if (currentPlatform.config.app_key) { + currentPlatform.config.agent_id = currentPlatform.config.app_key + delete currentPlatform.config.app_key + } currentPlatform.config.callback_url = `${defaultCallbackUrl}/api/wecom` break case 'dingtalk': - if (currentPlatform.config.agent_id && currentPlatform.key === 'dingtalk') { + if (currentPlatform.config.agent_id) { currentPlatform.config.corp_id = currentPlatform.config.agent_id delete currentPlatform.config.agent_id }