Skip to content

Commit

Permalink
fix: 企业微信扫码信息配置错误
Browse files Browse the repository at this point in the history
--bug=1050048 --user=王孝刚 【企业微信-扫码登录】配置信息错误 https://www.tapd.cn/57709429/s/1626175
  • Loading branch information
wxg0103 committed Dec 6, 2024
1 parent b87c214 commit 88b565f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/views/authentication/component/EditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 88b565f

Please sign in to comment.