fix incorrect pagination property

This commit is contained in:
nazarlitvin
2017-11-22 16:01:49 +02:00
parent c7acc8db4b
commit 38e24edd7b
+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,