Merge pull request #58 from Undertone0809/pagination-not-found-patch

fix: Pagination not found patch
This commit is contained in:
ronger 2022-10-31 23:15:35 +08:00 committed by GitHub
commit 05c787f670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ export default {
handleSizeChange(pageSize) { handleSizeChange(pageSize) {
let _ts = this; let _ts = this;
_ts.$store.dispatch('admin/fetchArticles', { _ts.$store.dispatch('admin/fetchArticles', {
page: _ts.pagination.currentPage, page: _ts.articles.pageNum,
rows: pageSize rows: pageSize
}) })
}, },
@ -147,7 +147,7 @@ export default {
let _ts = this; let _ts = this;
_ts.$store.dispatch('admin/fetchArticles', { _ts.$store.dispatch('admin/fetchArticles', {
page: page, page: page,
rows: _ts.pagination.pageSize rows: _ts.articles.pageSize
}) })
}, },
toggleStatus() {}, toggleStatus() {},