From c4da358cb52316558f4222e09af51e1daafa0157 Mon Sep 17 00:00:00 2001 From: 63f1bb74d2451104dc7d8b9f <63f1bb74d2451104dc7d8b9f@devide> Date: Fri, 30 Jun 2023 02:33:53 +0000 Subject: [PATCH] Auto Commit --- src/components/SearchGrade.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/SearchGrade.vue b/src/components/SearchGrade.vue index 61b6fd4..9433baa 100644 --- a/src/components/SearchGrade.vue +++ b/src/components/SearchGrade.vue @@ -42,13 +42,18 @@ const state = reactive({ showTotal: (total, range) => { return range[0] + '-' + range[1] + ' 共' + total + '篇博客'; }, - change:changePage + onShowSizeChange: changePageSize, // 改变每页数量时更新显示 + onChange:changePage,//点击页码事件 } }) function changePage(page,pageSize){ state.pagination.current= page state.pagination.pageSize= pageSize } +function changePageSize(current,pageSize){ + state.pagination.current= current + state.pagination.pageSize= pageSize +} const getCsdnData = (uId) => { const url = 'https://yongma16.xyz/common-api/getCsdnGrade/' -- GitLab