Skip to content

Commit b26e9ed

Browse files
committed
fix: update callback_url to use window location origin in EditModal.vue
1 parent 08cdfc6 commit b26e9ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/views/system-chat-user/authentication/component/EditModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const open = async (platform: Platform) => {
161161
currentPlatform.config.agent_id = currentPlatform.config.app_key
162162
delete currentPlatform.config.app_key
163163
}
164-
currentPlatform.config.callback_url = `${defaultCallbackUrl}/auth/wecom`
164+
currentPlatform.config.callback_url = window.location.origin
165165
break
166166
case 'dingtalk':
167167
if (currentPlatform.config.agent_id) {

ui/src/views/system-setting/authentication/component/EditModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const open = async (platform: Platform) => {
161161
currentPlatform.config.agent_id = currentPlatform.config.app_key
162162
delete currentPlatform.config.app_key
163163
}
164-
currentPlatform.config.callback_url = `${defaultCallbackUrl}/api/wecom`
164+
currentPlatform.config.callback_url = window.location.origin
165165
break
166166
case 'dingtalk':
167167
if (currentPlatform.config.agent_id) {

0 commit comments

Comments
 (0)