Skip to content

Commit 873d4af

Browse files
committed
fix: update callback URLs to include MaxKB prefix
1 parent 5ab5ab7 commit 873d4af

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/src/views/application/component/AccessSettingDrawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ const open = async (id: string, type: PlatformType) => {
392392
MsgError(t('views.application.tip.loadingErrorMessage'))
393393
} finally {
394394
loading.value = false
395-
form[configType.value].callback_url = `${window.location.origin}/api/chat/${type}/${id}`
395+
form[configType.value].callback_url = `${window.location.origin}${window.MaxKB.prefix}/api/chat/${type}/${id}`
396396
}
397397
}
398398

ui/src/views/login/scanCompinents/larkQrCode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const initActive = async () => {
3131
appSecret: props.config.app_secret
3232
}
3333
34-
const redirectUrl = encodeURIComponent(`${window.location.origin}/api/lark`)
34+
const redirectUrl = encodeURIComponent(`${window.location.origin}${window.MaxKB.prefix}/api/lark`)
3535
const url = `https://passport.feishu.cn/suite/passport/oauth/authorize?client_id=${data.agentId}&redirect_uri=${redirectUrl}&response_type=code&state=fit2cloud-lark-qr`
3636
const QRLoginObj = window.QRLogin({
3737
id: 'lark-qr',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const open = async (platform: Platform) => {
154154
Object.assign(currentPlatform, platform)
155155
156156
// 设置默认的 callback_url
157-
const defaultCallbackUrl = window.location.origin
157+
const defaultCallbackUrl = window.location.origin + window.MaxKB.prefix
158158
switch (platform.key) {
159159
case 'wecom':
160160
if (currentPlatform.config.app_key) {

0 commit comments

Comments
 (0)