diff --git a/ui/src/views/application/component/AccessSettingDrawer.vue b/ui/src/views/application/component/AccessSettingDrawer.vue index 379858eae..36910fa25 100644 --- a/ui/src/views/application/component/AccessSettingDrawer.vue +++ b/ui/src/views/application/component/AccessSettingDrawer.vue @@ -392,7 +392,7 @@ const open = async (id: string, type: PlatformType) => { MsgError(t('views.application.tip.loadingErrorMessage')) } finally { loading.value = false - form[configType.value].callback_url = `${window.location.origin}/api/chat/${type}/${id}` + form[configType.value].callback_url = `${window.location.origin}${window.MaxKB.prefix}/api/chat/${type}/${id}` } } diff --git a/ui/src/views/login/scanCompinents/larkQrCode.vue b/ui/src/views/login/scanCompinents/larkQrCode.vue index dfbd86a74..97e7d6b6a 100644 --- a/ui/src/views/login/scanCompinents/larkQrCode.vue +++ b/ui/src/views/login/scanCompinents/larkQrCode.vue @@ -31,7 +31,7 @@ const initActive = async () => { appSecret: props.config.app_secret } - const redirectUrl = encodeURIComponent(`${window.location.origin}/api/lark`) + const redirectUrl = encodeURIComponent(`${window.location.origin}${window.MaxKB.prefix}/api/lark`) const url = `https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=${data.agentId}&redirect_uri=${redirectUrl}&response_type=code&state=fit2cloud-lark-qr` const QRLoginObj = window.QRLogin({ id: 'lark-qr', diff --git a/ui/src/views/system-setting/authentication/component/EditModal.vue b/ui/src/views/system-setting/authentication/component/EditModal.vue index c01c32149..f66c82c94 100644 --- a/ui/src/views/system-setting/authentication/component/EditModal.vue +++ b/ui/src/views/system-setting/authentication/component/EditModal.vue @@ -154,7 +154,7 @@ const open = async (platform: Platform) => { Object.assign(currentPlatform, platform) // 设置默认的 callback_url - const defaultCallbackUrl = window.location.origin + const defaultCallbackUrl = window.location.origin + window.MaxKB.prefix switch (platform.key) { case 'wecom': if (currentPlatform.config.app_key) {