正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -2,7 +2,7 @@ import { Component } from 'react'; | @@ -2,7 +2,7 @@ import { Component } from 'react'; | ||
| 2 | import { connect } from 'dva'; | 2 | import { connect } from 'dva'; |
| 3 | import Users from './components/Users'; | 3 | import Users from './components/Users'; |
| 4 | 4 | ||
| 5 | -class BLOCK_NAME extends Component { | 5 | +class BLOCK_NAME_CAMEL_CASE extends Component { |
| 6 | componentDidMount() { | 6 | componentDidMount() { |
| 7 | this.props.dispatch({ | 7 | this.props.dispatch({ |
| 8 | type: 'BLOCK_NAME/fetch', | 8 | type: 'BLOCK_NAME/fetch', |
| @@ -21,4 +21,4 @@ class BLOCK_NAME extends Component { | @@ -21,4 +21,4 @@ class BLOCK_NAME extends Component { | ||
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | -export default connect()(BLOCK_NAME); | 24 | +export default connect()(BLOCK_NAME_CAMEL_CASE); |
请
注册
或
登录
后发表评论