get请求 方式一 axios.get('/login?userId=111') .then(res=>{ console.log(res); }).catch(error=>{ console.log(error); }) 方式二,通过params传 axios.get('/login',{ params