@quansitech/antd-admin 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Table.js +1 -8
- package/package.json +1 -1
package/dist/components/Table.js
CHANGED
|
@@ -297,14 +297,7 @@ export default function (props) {
|
|
|
297
297
|
|
|
298
298
|
// 搜索
|
|
299
299
|
if (!searchUrl) {
|
|
300
|
-
|
|
301
|
-
s = s.replace(/page=\d+&?/, '');
|
|
302
|
-
realColumns.filter(function (c) {
|
|
303
|
-
return c.search !== false;
|
|
304
|
-
}).map(function (c) {
|
|
305
|
-
s = s.replace(new RegExp("".concat(c.dataIndex, "=[^&]*&?")), '');
|
|
306
|
-
});
|
|
307
|
-
setSearchUrl(s);
|
|
300
|
+
setSearchUrl(window.location.href);
|
|
308
301
|
}
|
|
309
302
|
setDataSource(postData(props.dataSource || []));
|
|
310
303
|
if (!modalContext.inModal) {
|