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