【get】 带参数和请求头
axios.get('http://192.168.0.111:8008/api/index/banner', { params: { ID: 12345 }, headers: { 'Authorization': 'nimabi', "Cookie": 'cooikd' } }) .then(function (response) { console.log(response.data.data); }) .catch(function (error) { console.log(error); });