From 705bd235c3826859322efe8c17e78c30d3562b70 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 25 Jun 2024 14:42:45 +0800 Subject: [PATCH] fix: incorrect root path in API client requests (#6136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area ui /kind bug #### What this PR does / why we need it: 修复 api client 默认请求根地址不正确的问题。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- ui/packages/api-client/entry/api-client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/packages/api-client/entry/api-client.ts b/ui/packages/api-client/entry/api-client.ts index 9686466a5..67c578617 100644 --- a/ui/packages/api-client/entry/api-client.ts +++ b/ui/packages/api-client/entry/api-client.ts @@ -68,6 +68,7 @@ import { } from "../src"; const defaultAxiosInstance = axios.create({ + baseURL: "/", withCredentials: true, });