fix #958 redux form initialValues not updating with state

This commit is contained in:
Baorong Li
2019-04-04 16:45:28 +08:00
parent 33abd9369e
commit b278b028cf
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ File sizes after gzip:
`build` 命令会打包所有的资源,包含 JavaScript, CSS, web fonts, images, html 等。你可以在 `dist/` 目录下找到这些文件。
> 如果  有使用 HashHistory 、 部署 html 到非根目录、静态化等需求,请查看[Umi 部署](https://umijs.org/zh/guide/deploy.html)。
> 如果有使用 HashHistory 、 部署 html 到非根目录、静态化等需求,请查看[Umi 部署](https://umijs.org/zh/guide/deploy.html)。
## 本地验证
+1 -1
View File
@@ -12,7 +12,7 @@ const FormItem = Form.Item
@withI18n()
@connect(({ loading }) => ({ loading }))
@Form.create()
@Form.create({ enableReinitialize: true })
class Login extends PureComponent {
handleOk = () => {
const { dispatch, form } = this.props
+1 -1
View File
@@ -46,7 +46,7 @@ const requests = Object.values(api).map(item => {
})
let uuid = 2
@Form.create()
@Form.create({ enableReinitialize: true })
class RequestPage extends React.Component {
constructor(props) {
super(props)
+1 -1
View File
@@ -24,7 +24,7 @@ const TwoColProps = {
}
@withI18n()
@Form.create()
@Form.create({ enableReinitialize: true })
class Filter extends PureComponent {
handleFields = fields => {
const { createTime } = fields
+1 -1
View File
@@ -15,7 +15,7 @@ const formItemLayout = {
},
}
@withI18n()
@Form.create()
@Form.create({ enableReinitialize: true })
class UserModal extends PureComponent {
handleOk = () => {
const { item = {}, onOk, form } = this.props