This commit is contained in:
2023-02-14 00:25:06 +08:00
parent 5c0050fe13
commit 655af8eec1
18 changed files with 101 additions and 60 deletions

View File

@@ -2,18 +2,18 @@
* @Author: Kane
* @Date: 2023-02-13 15:53:45
* @LastEditors: Kane
* @LastEditTime: 2023-02-13 15:56:26
* @LastEditTime: 2023-02-13 22:41:50
* @FilePath: /后端辅助工具/src/axios/request.ts
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
import axios, { AxiosInstance } from "axios";
import axios, {AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios';
const service = axios.create({
baseURL: "",
timeout: 10000,
timeoutErrorMessage: "请求超时!",
});
// const service = axios.create({
// baseURL: "",
// timeout: 10000,
// timeoutErrorMessage: "请求超时!",
// });