mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-16 22:53:42 +08:00
refactor(projects): axios封装完成
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { createRequest } from './axios';
|
||||
import { REQUEST_TIMEOUT, REQUEST_TIMEOUT_MSG } from './config';
|
||||
import { REQUEST_TIMEOUT } from './config';
|
||||
|
||||
export const request = createRequest({
|
||||
baseURL: import.meta.env.VITE_HTTP_URL,
|
||||
timeout: REQUEST_TIMEOUT,
|
||||
timeoutErrorMessage: REQUEST_TIMEOUT_MSG
|
||||
timeout: REQUEST_TIMEOUT
|
||||
});
|
||||
|
||||
export { resultMiddleware } from './helpers';
|
||||
|
Reference in New Issue
Block a user