正在显示
4 个修改的文件
包含
7 行增加
和
8 行删除
... | ... | @@ -22,17 +22,17 @@ const { RangePicker } = DatePicker; |
22 | 22 | const { TextArea } = Input; |
23 | 23 | |
24 | 24 | @connect(({ loading }) => ({ |
25 | - submitting: loading.effects['form/submitRegularForm'], | |
25 | + submitting: loading.effects['BLOCK_NAME/submitRegularForm'], | |
26 | 26 | })) |
27 | 27 | @Form.create() |
28 | -class BasicForms extends PureComponent { | |
28 | +class PAGE_NAME_UPPER_CAMEL_CASE extends PureComponent { | |
29 | 29 | handleSubmit = e => { |
30 | 30 | const { dispatch, form } = this.props; |
31 | 31 | e.preventDefault(); |
32 | 32 | form.validateFieldsAndScroll((err, values) => { |
33 | 33 | if (!err) { |
34 | 34 | dispatch({ |
35 | - type: 'form/submitRegularForm', | |
35 | + type: 'BLOCK_NAME/submitRegularForm', | |
36 | 36 | payload: values, |
37 | 37 | }); |
38 | 38 | } |
... | ... | @@ -244,4 +244,4 @@ class BasicForms extends PureComponent { |
244 | 244 | } |
245 | 245 | } |
246 | 246 | |
247 | -export default BasicForms; | |
247 | +export default PAGE_NAME_UPPER_CAMEL_CASE; | ... | ... |
请
注册
或
登录
后发表评论