如何修改axios参数,然后让他再发一次请求

#1

‘’’
getRecord(){
let self=this;
axios.post(‘http://localhost:8080/getAllRecord’,{
currentPage:1,
pageSize:10
})
.then(function (response) {
console.log(response);
let page=pageBar;
axios.get(‘http://localhost:8080/getRecordNum’,{
params:{pageSize:10}
})
.then(function (response) {
page.all=response.data;
console.log(response);
})
.catch(function (error) {
console.log(error);
});
self.object=response.data;
})
.catch(function (error) {
console.log(error);
});
}
‘’’
修改post请求中的currentPage,然后重新发送http://localhost:8080/getAllRecord这个请求

#2

没读懂啥意思。而且,大哥你用错了代码块啊。是` 不是 ‘