修复 4.3.5 中用户画面翻页无效的问题

This commit is contained in:
dongyulei
2017-09-10 00:02:10 +08:00
parent fa4385055b
commit 00582e70ff
+2 -1
View File
@@ -24,9 +24,10 @@ export default modelExtend(pageModel, {
setup ({ dispatch, history }) {
history.listen((location) => {
if (location.pathname === '/user') {
const payload = location.query || { current: 1, pageSize: 10 }
dispatch({
type: 'query',
payload: queryString.parse(location.search),
payload,
})
}
})