提交 7452ec68 authored 作者: sin's avatar sin

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

上级 08cbed24
...@@ -36,14 +36,14 @@ const copyright = ( ...@@ -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() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论