From 06851c541d167ee34ce5fdd881f13ec81fa364e9 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Wed, 24 Nov 2021 10:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E3=80=91=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E5=B1=95=E7=A4=BA=E4=B8=BA=E2=80=9Dundefined?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pagination/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pagination/main.js b/src/components/pagination/main.js index 8b3d60ac..8a3fe96e 100644 --- a/src/components/pagination/main.js +++ b/src/components/pagination/main.js @@ -172,12 +172,12 @@ import _ from "lodash";
{this.onPrevClick()}} type={"left"} className={ this.state.page > 1 ? "page-prev" :"page-prev disabled" } /> { - btns.map((item, index) => { + btns!='undefined'?btns.map((item, index) => { return (
{this.onPageClick(item)}} key={index} className={ item== this.state.page ? "btn-page active":"btn-page"}>{item}
) - }) - } + }):1 + } {this.onNextClick() }} type={"right"} className={ this.state.page >= page_num ? "page-next disabled" :"page-next" } />