Skip to content

Commit

Permalink
fix: fix the tag & catalog page
Browse files Browse the repository at this point in the history
  • Loading branch information
k-water committed Feb 25, 2018
1 parent 7a97755 commit bf9f0e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class BlogList extends Component {
this.props.getBlogList(params)
}
render() {
const tags = this.props.match.params.tags
const catalog = this.props.match.params.catalog
const pagination = {
pageSize: 5,
current: this.state.currentPage,
Expand All @@ -49,8 +51,8 @@ class BlogList extends Component {
})
let params = {
order: '',
catalogId: '',
keyword: '',
catalogId: catalog ? catalog : '',
keyword: tags ? tags : '',
pageIndex: page - 1,
pageSize: pageSize
}
Expand Down

0 comments on commit bf9f0e3

Please sign in to comment.