1. import { matchRoutes } from 'react-router-config';
    2. // routes config
    3. const routes = [
    4. {
    5. path: '/outlets',
    6. exact: true,
    7. permissions: ['admin', 'user'],
    8. component: Outlets,
    9. unauthorized: Unauthorized,
    10. pageTitle: '门店管理',
    11. breadcrumb: ['/outlets'],
    12. },
    13. {
    14. path: '/outlets/:id',
    15. exact: true,
    16. permissions: ['admin', 'user'],
    17. component: OutletDetail,
    18. unauthorized: Unauthorized,
    19. pageTitle: '门店详情',
    20. breadcrumb: ['/outlets', '/outlets/:id'],
    21. }
    22. ];