fix: update callback_url to use window location origin in EditModal.vue

This commit is contained in:
wxg0103 2025-12-16 10:02:29 +08:00
parent 08cdfc61ab
commit b26e9ed443
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {