From 2fd802a4a837e6b7d3454b7134885cf46761518e Mon Sep 17 00:00:00 2001 From: Yanko <747575620@qq.com> Date: Mon, 19 Aug 2024 10:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/requestErrorConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/requestErrorConfig.ts b/frontend/src/requestErrorConfig.ts index 1602bb7..5a30530 100644 --- a/frontend/src/requestErrorConfig.ts +++ b/frontend/src/requestErrorConfig.ts @@ -47,7 +47,7 @@ export const errorConfig: RequestConfig = { (config: RequestOptions) => { if (process.env.NODE_ENV !== 'development') { - config.url = config.url?.replace("/api", '/api/api') + config.url = config.url?.replace("/api", '/base/api') } // 拦截请求配置,进行个性化处理。 const userToken = localStorage.getItem('USER_TOKEN');