router.map.js 1.86 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 21
// 视图组件
const view = {
    tabs: () => import('@/pages/frame/view/template/TabsTemplateView'),
    blank: () => import('@/pages/frame/view/template/BlankTemplateView'),
    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: {
陈浩玮's avatar
参数  
陈浩玮 committed
22 23 24 25
        authority: '*',
        name: '403错误',
        path: '403',
        component: () => import('@/pages/frame/view/exception/403'),
wb-ct393452's avatar
wb-ct393452 committed
26 27
    },
    exp404: {
陈浩玮's avatar
参数  
陈浩玮 committed
28 29 30
        name: '404错误',
        path: '404',
        component: () => import('@/pages/frame/view/exception/404'),
wb-ct393452's avatar
wb-ct393452 committed
31 32
    },
    exp500: {
陈浩玮's avatar
参数  
陈浩玮 committed
33 34 35
        name: '500错误',
        path: '500',
        component: () => import('@/pages/frame/view/exception/500'),
wb-ct393452's avatar
wb-ct393452 committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    },
    dashboard: {
        name: 'Dashboard',
        component: view.blank,
    },
    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'),
    },
    user_management: {
        name: '用户管理',
        component: () => import('@/pages/system/view/user'),
    },
    role_management: {
        name: '角色管理',
        component: () => import('@/pages/system/view/role'),
    },
陈浩玮's avatar
陈浩玮 committed
65 66 67 68

    // log_management: {
    //     name: '日志管理',
    //     component: () => import('@/pages/system/view/log'),
陈浩玮's avatar
参数  
陈浩玮 committed
69
    // },
wb-ct393452's avatar
wb-ct393452 committed
70 71
};
export default routerMap;