- 优化,登陆页面获取菜单会失败,

This commit is contained in:
sin 2019-03-10 15:15:13 +08:00
parent 08cbed2483
commit 7452ec68ae

View File

@ -36,14 +36,14 @@ const copyright = (
class UserLayout extends Component { class UserLayout extends Component {
componentDidMount() { componentDidMount() {
const { // const {
dispatch, // dispatch,
route: { routes, authority }, // route: { routes, authority },
} = this.props; // } = this.props;
dispatch({ // dispatch({
type: 'menu/getMenuData', // type: 'menu/getMenuData',
payload: { routes, authority }, // payload: { routes, authority },
}); // });
} }
render() { render() {