diff --git a/ui/src/views/system-chat-user/authentication/component/EditModal.vue b/ui/src/views/system-chat-user/authentication/component/EditModal.vue index bd8c39096..d8d82091d 100644 --- a/ui/src/views/system-chat-user/authentication/component/EditModal.vue +++ b/ui/src/views/system-chat-user/authentication/component/EditModal.vue @@ -161,7 +161,7 @@ const open = async (platform: Platform) => { currentPlatform.config.agent_id = currentPlatform.config.app_key delete currentPlatform.config.app_key } - currentPlatform.config.callback_url = `${defaultCallbackUrl}/auth/wecom` + currentPlatform.config.callback_url = window.location.origin break case 'dingtalk': if (currentPlatform.config.agent_id) { diff --git a/ui/src/views/system-setting/authentication/component/EditModal.vue b/ui/src/views/system-setting/authentication/component/EditModal.vue index f66c82c94..d9860498d 100644 --- a/ui/src/views/system-setting/authentication/component/EditModal.vue +++ b/ui/src/views/system-setting/authentication/component/EditModal.vue @@ -161,7 +161,7 @@ const open = async (platform: Platform) => { currentPlatform.config.agent_id = currentPlatform.config.app_key delete currentPlatform.config.app_key } - currentPlatform.config.callback_url = `${defaultCallbackUrl}/api/wecom` + currentPlatform.config.callback_url = window.location.origin break case 'dingtalk': if (currentPlatform.config.agent_id) {