diff --git a/docs/zh-cn/deploy.md b/docs/zh-cn/deploy.md index e9cb04c..cdbac06 100644 --- a/docs/zh-cn/deploy.md +++ b/docs/zh-cn/deploy.md @@ -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)。 ## 本地验证 diff --git a/src/pages/login/index.js b/src/pages/login/index.js index 1228630..b7dfdc3 100644 --- a/src/pages/login/index.js +++ b/src/pages/login/index.js @@ -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 diff --git a/src/pages/request/index.js b/src/pages/request/index.js index 911e101..d3ded13 100644 --- a/src/pages/request/index.js +++ b/src/pages/request/index.js @@ -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) diff --git a/src/pages/user/components/Filter.js b/src/pages/user/components/Filter.js index c031d30..01d0f49 100644 --- a/src/pages/user/components/Filter.js +++ b/src/pages/user/components/Filter.js @@ -24,7 +24,7 @@ const TwoColProps = { } @withI18n() -@Form.create() +@Form.create({ enableReinitialize: true }) class Filter extends PureComponent { handleFields = fields => { const { createTime } = fields diff --git a/src/pages/user/components/Modal.js b/src/pages/user/components/Modal.js index 2d8fe28..96901d6 100644 --- a/src/pages/user/components/Modal.js +++ b/src/pages/user/components/Modal.js @@ -15,7 +15,7 @@ const formItemLayout = { }, } @withI18n() -@Form.create() +@Form.create({ enableReinitialize: true }) class UserModal extends PureComponent { handleOk = () => { const { item = {}, onOk, form } = this.props