jiekou() {
let that = this
axios.get('你的接口', {
params: {
传给后台的值
}
})
.then(function (res) {
//成功的回调
console.log(res)
})
.catch(function (error) {
//失败的回调
});
}
Vue中axios接口使用
最新推荐文章于 2023-03-18 21:59:35 发布