From dc26f7d25e6f8afed05daf9c1cefc24aa4567ac1 Mon Sep 17 00:00:00 2001 From: shijun Wei <191796158@qq.com> Date: Thu, 2 Nov 2017 13:19:09 +0800 Subject: [PATCH] update query to search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit history 的 location 属性上不再包含 query。 --- src/routes/user/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/user/index.js b/src/routes/user/index.js index 696d180..f844100 100644 --- a/src/routes/user/index.js +++ b/src/routes/user/index.js @@ -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) {