|
|
@@ -46,10 +46,9 @@ export const errorConfig: RequestConfig<MyResponse.Content> = { |
|
|
|
requestInterceptors: [ |
|
|
|
(config: RequestOptions) => { |
|
|
|
|
|
|
|
// if (process.env.NODE_ENV !== 'development') { |
|
|
|
// config.url = config.url?.replace("/api", '') |
|
|
|
// } |
|
|
|
|
|
|
|
if (process.env.NODE_ENV !== 'development') { |
|
|
|
config.url = config.url?.replace("/api", '/api/api') |
|
|
|
} |
|
|
|
// 拦截请求配置,进行个性化处理。 |
|
|
|
const userToken = localStorage.getItem('USER_TOKEN'); |
|
|
|
const x_Token = localStorage.getItem('USER_X_TOKEN'); |
|
|
|