router.map.js 2 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: {
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: {
28 29 30
        name: '404错误',
        path: '404',
        component: () => import('@/pages/frame/view/exception/404'),
wb-ct393452's avatar
wb-ct393452 committed
31 32
    },
    exp500: {
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 65 66 67 68 69 70 71 72 73 74 75
    },
    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'),
    },

    organization_management: {
        name: '组织管理',
        component: () => import('@/pages/system/view/organization'),
    },
    user_management: {
        name: '用户管理',
        component: () => import('@/pages/system/view/user'),
    },
    role_management: {
        name: '角色管理',
        component: () => import('@/pages/system/view/role'),
    },
    parameter_management: {
        name: '参数管理',
        component: () => import('@/pages/system/view/parameter'),
    },
};
export default routerMap;