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

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 {
componentDidMount() {
const {
dispatch,
route: { routes, authority },
} = this.props;
dispatch({
type: 'menu/getMenuData',
payload: { routes, authority },
});
// const {
// dispatch,
// route: { routes, authority },
// } = this.props;
// dispatch({
// type: 'menu/getMenuData',
// payload: { routes, authority },
// });
}
render() {