Skip to content

axios封装

ts
declare module 'axios' {    
interface AxiosResponse<T = any> {        
    code: number;        
    message: string;        
    // 这里追加你的接口参数    
    }   
    export function create(config?: AxiosRequestConfig): AxiosInstance;
}

苏ICP备2025160170号-1 | 前端进化之路 | Released under the MIT License.