Browse Source

fix: service request exceptions after deployment

pull/3993/head
vince 2 years ago
parent
commit
d26a4ee022
  1. 2
      apps/web-antd/.env.production
  2. BIN
      apps/web-antd/dist.zip
  3. 1
      packages/@core/forward/request/src/request-client/request-client.ts

2
apps/web-antd/.env.production

@ -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

Binary file not shown.

1
packages/@core/forward/request/src/request-client/request-client.ts

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

Loading…
Cancel
Save