From e783edb590b98967756e0c7dca0e11fc61f7b171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Sat, 9 Dec 2017 22:37:05 +0800 Subject: [PATCH] Repair query form parameters not reset problem (#398) * Repair parameters not reset problem * fix #400 getFieldDecorator more than one --- src/routes/Forms/BasicForm.js | 32 +++++++++++++++++--------------- src/routes/List/TableList.js | 3 +++ 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/routes/Forms/BasicForm.js b/src/routes/Forms/BasicForm.js index a5126a6a..03f154bf 100644 --- a/src/routes/Forms/BasicForm.js +++ b/src/routes/Forms/BasicForm.js @@ -156,21 +156,23 @@ export default class BasicForms extends PureComponent { 不公开 )} - {getFieldDecorator('publicUsers', { - })( - - )} + + {getFieldDecorator('publicUsers', { + })( + + )} + diff --git a/src/routes/List/TableList.js b/src/routes/List/TableList.js index df992670..7527a585 100644 --- a/src/routes/List/TableList.js +++ b/src/routes/List/TableList.js @@ -59,6 +59,9 @@ export default class TableList extends PureComponent { handleFormReset = () => { const { form, dispatch } = this.props; form.resetFields(); + this.setState({ + formValues: {}, + }); dispatch({ type: 'rule/fetch', payload: {}, -- GitLab