|
@@ -31,7 +31,7 @@ class Header extends PureComponent {
|
|
// this.state.loading = true
|
|
// this.state.loading = true
|
|
const {isVisible, value, open, isUser, menuList, loading} = this.state;
|
|
const {isVisible, value, open, isUser, menuList, loading} = this.state;
|
|
const {category} = this.props;
|
|
const {category} = this.props;
|
|
- const {title, domain} = this.props.confing.toJS();
|
|
|
|
|
|
+ const {title, domain} = this.props.config.toJS();
|
|
const {name, introduction, avatar} = this.props.userInfo.toJS();
|
|
const {name, introduction, avatar} = this.props.userInfo.toJS();
|
|
if (title) document.title = title;
|
|
if (title) document.title = title;
|
|
return (
|
|
return (
|
|
@@ -232,7 +232,7 @@ class Header extends PureComponent {
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
this.props.getCategory();
|
|
this.props.getCategory();
|
|
this.props.getUser();
|
|
this.props.getUser();
|
|
- this.props.getConfing();
|
|
|
|
|
|
+ this.props.getConfig();
|
|
this.getMenu();
|
|
this.getMenu();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -359,7 +359,7 @@ class Header extends PureComponent {
|
|
const mapStateToProps = (state) => {
|
|
const mapStateToProps = (state) => {
|
|
return {
|
|
return {
|
|
category: state.getIn(['header', 'category']),
|
|
category: state.getIn(['header', 'category']),
|
|
- confing: state.getIn(['header', 'confing']),
|
|
|
|
|
|
+ config: state.getIn(['header', 'config']),
|
|
userInfo: state.getIn(['header', 'userInfo']),
|
|
userInfo: state.getIn(['header', 'userInfo']),
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -372,8 +372,8 @@ const mapDispatchToProps = (dispatch) => {
|
|
getUser() {
|
|
getUser() {
|
|
dispatch(actionCreators.getUser());
|
|
dispatch(actionCreators.getUser());
|
|
},
|
|
},
|
|
- getConfing() {
|
|
|
|
- dispatch(actionCreators.getConfing());
|
|
|
|
|
|
+ getConfig() {
|
|
|
|
+ dispatch(actionCreators.getConfig());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|