From d5f9efeceb4ccf56f0f31e8b8f65a4ddba38bc2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Fri, 10 Dec 2021 21:25:09 +0800 Subject: [PATCH] Update main.js --- src/components/pagination/main.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/pagination/main.js b/src/components/pagination/main.js index 6c57c34f..9494398b 100644 --- a/src/components/pagination/main.js +++ b/src/components/pagination/main.js @@ -154,10 +154,14 @@ import _ from "lodash"; render() { const { data} = this.props; let page_num =Math.ceil( data.count / this.state.count); + + console.log(page_num) + + let btnPages = [] for(let i = 1;i