最贊回答 / softcat
vue源碼:https://github.com/web-gm/axios-learn.git后端接口:https://github.com/web-gm/axios_node_api.git
2020-04-21
最贊回答 / 慕九州9057380
import?axios?from?'axios'import?service?from?'./contactApi'import?{?Toast?}?from?'vant'//?1.service?循環遍歷出不同的請求方法let?instance?=?axios.create({??//?注意地址的拼寫??baseURL:?'http://localhost:9000/api',??timeout:?1000})let?Http?=?{};?//包裹請求方法的容器//?2.請求格式或者參數的統一for?...
2020-04-03