mirror of
https://github.com/zuiidea/antd-admin.git
synced 2026-10-19 16:14:37 +00:00
fix #958 redux form initialValues not updating with state
This commit is contained in:
@@ -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)。
|
||||
|
||||
## 本地验证
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -24,7 +24,7 @@ const TwoColProps = {
|
||||
}
|
||||
|
||||
@withI18n()
|
||||
@Form.create()
|
||||
@Form.create({ enableReinitialize: true })
|
||||
class Filter extends PureComponent {
|
||||
handleFields = fields => {
|
||||
const { createTime } = fields
|
||||
|
||||
@@ -15,7 +15,7 @@ const formItemLayout = {
|
||||
},
|
||||
}
|
||||
@withI18n()
|
||||
@Form.create()
|
||||
@Form.create({ enableReinitialize: true })
|
||||
class UserModal extends PureComponent {
|
||||
handleOk = () => {
|
||||
const { item = {}, onOk, form } = this.props
|
||||
|
||||
Reference in New Issue
Block a user