Skip to content

Commit 59117a0

Browse files
committed
feat: update WeCom callback URL configuration in EditModal and remove WeCom SDK dependency
1 parent 337124c commit 59117a0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ui/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@logicflow/extension": "^1.2.27",
2525
"@vavt/cm-extension": "^1.9.1",
2626
"@vueuse/core": "^13.3.0",
27-
"@wecom/jssdk": "^2.3.3",
2827
"axios": "^1.8.4",
2928
"cropperjs": "^1.6.2",
3029
"dingtalk-jsapi": "^3.1.0",

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 = window.location.origin
164+
currentPlatform.config.callback_url = `${defaultCallbackUrl}/auth/wecom`
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 = window.location.origin
164+
currentPlatform.config.callback_url = `${defaultCallbackUrl}/auth/wecom`
165165
break
166166
case 'dingtalk':
167167
if (currentPlatform.config.agent_id) {

0 commit comments

Comments
 (0)