From 63752cf652389aae75f3ee01815cf526f0a8a9ec Mon Sep 17 00:00:00 2001 From: Qxisylolo Date: Fri, 24 Jan 2025 14:16:54 +0800 Subject: [PATCH] a little fix Signed-off-by: Qxisylolo --- src/core/public/http/fetch.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/public/http/fetch.ts b/src/core/public/http/fetch.ts index b3d5c204c3ca..7f87e5e7041f 100644 --- a/src/core/public/http/fetch.ts +++ b/src/core/public/http/fetch.ts @@ -148,12 +148,11 @@ export class Fetch { }), }; - const prependOptions = options.withoutClientBasePath - ? { withoutClientBasePath: options.withoutClientBasePath } - : undefined; const url = format({ pathname: shouldPrependBasePath - ? this.params.basePath.prepend(options.path, prependOptions) + ? this.params.basePath.prepend(options.path, { + withoutClientBasePath: options.withoutClientBasePath, + }) : options.path, query: removedUndefined(query), });