router.map.js 1.4 KB
Newer Older
wb-ct393452's avatar
wb-ct393452 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// 视图组件
const view = {
    tabs: () => import('@/pages/frame/view/template/TabsTemplateView'),
    page: () => import('@/pages/frame/view/template/PageTemplateView'),
};

// 路由组件注册
const routerMap = {
    login: {
        authority: '*',
        path: '/login',
        component: () => import('@/pages/frame/view/login'),
    },
    root: {
        path: '/',
        name: '首页',
        redirect: '/login',
        component: view.tabs,
    },
    exp403: {
21 22 23 24
        authority: '*',
        name: '403错误',
        path: '403',
        component: () => import('@/pages/frame/view/exception/403'),
wb-ct393452's avatar
wb-ct393452 committed
25 26
    },
    exp404: {
27 28 29
        name: '404错误',
        path: '404',
        component: () => import('@/pages/frame/view/exception/404'),
wb-ct393452's avatar
wb-ct393452 committed
30 31
    },
    exp500: {
32 33 34
        name: '500错误',
        path: '500',
        component: () => import('@/pages/frame/view/exception/500'),
wb-ct393452's avatar
wb-ct393452 committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    },
    dashboard: {
        name: 'Dashboard',
    },
    workbench: {
        name: '工作台',
        component: () => import('@/pages/dashboard/workbench'),
    },
    analysis: {
        name: '分析页',
        component: () => import('@/pages/dashboard/analysis'),
    },
    system_management: {
        name: '系统管理',
        component: view.page,
    },
    menu_management: {
        name: '菜单管理',
        component: () => import('@/pages/system/view/menu'),
    },
};
export default routerMap;