Browse Source

整改

master
Yanko 4 months ago
parent
commit
2fd802a4a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frontend/src/requestErrorConfig.ts

+ 1
- 1
frontend/src/requestErrorConfig.ts View File

@@ -47,7 +47,7 @@ export const errorConfig: RequestConfig<MyResponse.Content> = {
(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');


Loading…
Cancel
Save