From 2f1dc80a8efc69ada8cd884f79cc2d632ed3be16 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 16 Oct 2026 11:22:47 +0800 Subject: [PATCH] fix: update callback URL generation in EditSCANDrawer to use CHAT_API_BASE_PATH --- .../system/chat-management/authentication/EditSCANDrawer.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/system/chat-management/authentication/EditSCANDrawer.vue b/ui/src/views/system/chat-management/authentication/EditSCANDrawer.vue index 4223f3eb6c3..b8bc6c07ede 100644 --- a/ui/src/views/system/chat-management/authentication/EditSCANDrawer.vue +++ b/ui/src/views/system/chat-management/authentication/EditSCANDrawer.vue @@ -5,7 +5,7 @@ import type { QrLoginPlatformPayload } from '@/api/types' import type { FormInstance, FormRules } from 'element-plus' import { LOGIN_METHOD_LABELS, SCAN_FIELD_LABELS } from '@/constants' import { LOGIN_METHOD } from '@/api/enums' -import { ADMIN_API_BASE_PATH } from '@/api/constants' +import { CHAT_API_BASE_PATH } from '@/api/constants' import { copyText } from '@/utils/clipboard' import { MsgSuccess, MsgError } from '@/utils/message' import perm from '@/permission' @@ -17,7 +17,7 @@ const formRef = useTemplateRef('formRef') const form = reactive({ key: LOGIN_METHOD.WECOM, isActive: false, config: {} }) // 扫码登录回调地址沿用当前 API base 路径自动生成,只读展示。 -const callbackUrl = computed(() => `${window.location.origin}${ADMIN_API_BASE_PATH}/${form.key}`) +const callbackUrl = computed(() => `${window.location.origin}${CHAT_API_BASE_PATH}/auth/${form.key}`) const configKeys = computed(() => Object.keys(form.config).filter((key) => key !== 'callback_url')) const rules = computed(() =>