_layout.js 457 Bytes
Newer Older
xiaohu's avatar
xiaohu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import React from 'react';
import { getRouterData } from 'common/router';
import { getMenuData } from 'common/menu';
import UserLayout from '../../layouts/UserLayout';

export default props => {
  const { children, location } = props;
  const routerData = getRouterData({});
  const menuData = getMenuData({});
  return (
    <UserLayout routerData={routerData} menuData={menuData} location={location} {...props}>
      {children}
    </UserLayout>
  );
};