From b26e9ed4437b0cca69e64aa81d982c37e49b5fc4 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 16 Dec 2025 10:02:29 +0800 Subject: [PATCH] fix: update callback_url to use window location origin in EditModal.vue --- .../system-chat-user/authentication/component/EditModal.vue | 2 +- .../views/system-setting/authentication/component/EditModal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {