Update main.js

This commit is contained in:
姜棚 2021-12-10 21:25:09 +08:00
parent 25da5c728b
commit d5f9efeceb
1 changed files with 7 additions and 2 deletions

View File

@ -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<page_num + 1;i++ )
{
console.log(1)
// let o = {}
// o.page = i;
// o.text = i ;
@ -165,7 +169,8 @@ import _ from "lodash";
}
let btns = this.getPageArr(btnPages,this.state.page,3)
let btns = this.getPageArr(btnPages,this.state.page,8)
return (
<div className="pagination">
<div className="pagination-context">