refactor: use setup refactor

This commit is contained in:
xiaoxian521
2021-09-19 01:12:46 +08:00
parent 85f4917f26
commit afff1d677b
18 changed files with 128 additions and 106 deletions

View File

@@ -5,7 +5,8 @@ import { excludeProps } from "./utils";
*/
export const defaultConfig: AxiosRequestConfig = {
baseURL: "",
timeout: 10000, //10秒超时
//10秒超时
timeout: 10000,
headers: {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",