수정 3번째...
This commit is contained in:
parent
8aea00a6ef
commit
b9dd346275
@ -100,16 +100,14 @@ export default {
|
|||||||
unmounted() {},
|
unmounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
list() {
|
list() {
|
||||||
const parameters = {
|
|
||||||
params: {
|
|
||||||
page: parseInt(this.currentPage),
|
|
||||||
per_page: parseInt(this.perPage),
|
|
||||||
searchString: this.searchString
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log(parameters)
|
|
||||||
axios
|
axios
|
||||||
.get('http://localhost:3000/todo', parameters)
|
.get('http://localhost:3000/todo', {
|
||||||
|
params: {
|
||||||
|
page: parseInt(this.currentPage),
|
||||||
|
per_page: parseInt(this.perPage),
|
||||||
|
searchString: this.searchString
|
||||||
|
}
|
||||||
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
// console.log(response)
|
// console.log(response)
|
||||||
this.currentPage = response.data.page
|
this.currentPage = response.data.page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user