版本号 安装axios及axios适配器,适配小程序 使用axios import axios from "axios" import type { AxiosAdapter, AxiosInstance, AxiosPromise, AxiosRequestConfig, AxiosResponse } from "axios"; import mpAdapter from "axios-miniprogram-adapter"; axios.defaults.adapter = mpAdapter as any interface Result<T = any> { code: number | string; msg: string; data: T; }; /* declare module 'axios' { //如遇到request()方法里的retuen报类型错误,放开这段注释采用这种形式定义返回类型,将上方的Result接口注释 interface AxiosResponse<T = any> { code: number | string; msg:...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Axios
Contact Axios, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack