提交 a96accb7109fc0359cc80d1cf143ef9d98cbf11d

作者 愚道
1 个父辈 31ef4409

use BLOCK_NAME_CAMEL_CASE

... ... @@ -4,12 +4,12 @@ import { connect } from 'dva';
4 4
5 5 import styles from './style.less';
6 6
7   -@connect(({ BLOCK_NAME }) => BLOCK_NAME)
  7 +@connect(({ BLOCK_NAME_CAMEL_CASE }) => BLOCK_NAME_CAMEL_CASE)
8 8 class Page extends Component {
9 9 componentDidMount() {
10 10 const { dispatch } = this.props;
11 11 dispatch({
12   - type: 'BLOCK_NAME/fetch',
  12 + type: 'BLOCK_NAME_CAMEL_CASE/fetch',
13 13 });
14 14 }
15 15
... ...
1 1 import { getText } from './service';
2 2
3 3 export default {
4   - namespace: 'BLOCK_NAME',
  4 + namespace: 'BLOCK_NAME_CAMEL_CASE',
5 5 state: {
6 6 text: 'loading...',
7 7 },
... ...
注册登录 后发表评论