fix: service request exceptions after deployment

This commit is contained in:
vince 2024-07-09 22:06:00 +08:00
parent 35ca56437c
commit d26a4ee022
3 changed files with 1 additions and 2 deletions

View File

@ -2,4 +2,4 @@
VITE_PUBLIC_PATH = /
# Basic interface address SPA
VITE_GLOB_API_URL=/api
VITE_GLOB_API_URL=https://mock-napi.vben.pro/api

BIN
apps/web-antd/dist.zip Normal file

Binary file not shown.

View File

@ -37,7 +37,6 @@ class RequestClient {
},
// 默认超时时间
timeout: 10_000,
withCredentials: true,
};
const { makeAuthorization, ...axiosConfig } = options;
const requestConfig = merge(axiosConfig, defaultConfig);