Merge branch 'master' of https://github.com/dong894/antd-admin into dong894-master

This commit is contained in:
zuiidea
2017-09-11 09:47:29 +08:00
+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,
})
}
})