update
This commit is contained in:
@@ -88,10 +88,10 @@
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
}
|
}
|
||||||
const page = this.$route.query.page || 0;
|
|
||||||
|
|
||||||
|
const page = this.$route.query.page || 0;
|
||||||
const data = await articleService.getArticles({page});
|
const data = await articleService.getArticles({page});
|
||||||
const {content, totalPages, totalElements } = data;
|
const {content, totalPages} = data;
|
||||||
|
|
||||||
this.pages = paginationUtil(page, totalPages);
|
this.pages = paginationUtil(page, totalPages);
|
||||||
|
|
||||||
@@ -109,7 +109,6 @@
|
|||||||
},
|
},
|
||||||
isActivePage(page) {
|
isActivePage(page) {
|
||||||
const currentPage = this.$route.query.page || 0;
|
const currentPage = this.$route.query.page || 0;
|
||||||
console.log(currentPage, page);
|
|
||||||
return page - 1 === currentPage;
|
return page - 1 === currentPage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user