add: 增加axios封装的注释

This commit is contained in:
talktao 2022-03-24 22:14:57 +08:00
parent 321109bbcf
commit 42065beebd

View File

@ -16,12 +16,12 @@ class HttpRequest {
private readonly withCredentials: boolean;
private readonly timeout: number;
constructor() {
//获取当前环境的api地址
this.baseURL = import.meta.env.VITE_BASE_URL as string;
console.log(this.baseURL,'this.baseURL');
this.withCredentials = true;
this.timeout = 1000 * 60;
}
//初始化get请求
getInitConfig(): AxiosRequestConfig {
return {
baseURL: this.baseURL,