axios请求嵌套同步方法
axios.get('/userAll')
.then( async response {
console.log(response);
await axios.get('/user?ID=12345')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
})
.catch(function (error) {
console.log(error);
});