created() {
this.getnewslist();
},
methods: {
getnewslist() {
this.$axios({
//url: common.apidomain + '/task/confirm/' + this.id,
//method: 'post'
url: APP.API.cashier.ajax,
method: 'post',
data: this.fenyedata()
}).then(res => {
this.tableData = res.data.rows;
this.total = res.data.total;
this.$nextTick(() => {
this.loading = false
})
}).catch(err => {
console.log(err)
})
}
}
axios的ajax请求
最新推荐文章于 2024-03-18 15:29:51 发布