摘要:
request.js import axios from 'axios' export function request(config, success, failure) { const instance = axios.create({ baseURL: 'http://123.207.32.3 阅读全文
摘要:
const instance = axios.create({ baseURL: 'http://123.207.32.32:8000', timeout: 1000, }); instance({ method: 'get', url: '/home/data', params: { type: 阅读全文
摘要:
// 全局配置 axios.defaults.baseURL = 'http://123.207.32.32:8000' axios.defaults.timeout = 500 axios({ method: 'get', url: '/home/data', params: { type: 's 阅读全文
摘要:
axios.all([{ method: 'get', url: 'http://123.207.32.32:8000/home/data', params: { type: 'sell', page: 1 } }, { method: 'get', url: 'http://123.207.32. 阅读全文
摘要:
安装 cnpm install axios 使用 import axios from 'axios' axios({ method: 'get', url: 'http://123.207.32.32:8000/home/multidata' }).then(res => { console.log 阅读全文