// 全局配置 axios.defaults.baseURL = 'http://123.207.32.32:8000' axios.defaults.timeout = 500 axios({ method: 'get', url: '/home/data', params: { type: 'sell', page: 1 } }).then(res => { console.log(res) })