update query to search

history 的 location 属性上不再包含 query。
This commit is contained in:
shijun Wei
2017-11-02 13:19:09 +08:00
committed by GitHub
parent c7acc8db4b
commit dc26f7d25e
+3 -2
View File
@@ -88,11 +88,12 @@ const User = ({ location, dispatch, user, loading }) => {
onFilterChange (value) {
dispatch(routerRedux.push({
pathname: location.pathname,
query: {
//history 的 location 属性上不再包含 query。
search: queryString.stringify({
...value,
page: 1,
pageSize,
},
}),
}))
},
onSearch (fieldsValue) {