Merge branch 'pagination' of https://github.com/nazarlitvin/antd-admin into nazarlitvin-pagination

This commit is contained in:
zuiidea
2017-11-24 10:24:22 +08:00
+1 -1
View File
@@ -23,7 +23,7 @@ export default modelExtend(pageModel, {
setup ({ dispatch, history }) {
history.listen((location) => {
if (location.pathname === '/user') {
const payload = location.query || { current: 1, pageSize: 10 }
const payload = location.query || { page: 1, pageSize: 10 }
dispatch({
type: 'query',
payload,