mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 03:04:48 +00:00
修复 4.3.5 中用户画面翻页无效的问题
This commit is contained in:
+2
-1
@@ -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,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user