This commit is contained in:
leejinseok
2020-02-17 12:30:33 +09:00
parent 2a48f02b19
commit eff2a8e911

View File

@@ -88,10 +88,10 @@
} catch (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 {content, totalPages, totalElements } = data;
const {content, totalPages} = data;
this.pages = paginationUtil(page, totalPages);
@@ -109,7 +109,6 @@
},
isActivePage(page) {
const currentPage = this.$route.query.page || 0;
console.log(currentPage, page);
return page - 1 === currentPage;
}
}