router.map.js 2.11 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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 76 77 78 79 80

// 视图组件
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: {
        authority: "*",
        name: "403错误",
        path: "403",
        component: () => import("@/pages/frame/view/exception/403"),
    },
    exp404: {
        name: "404错误",
        path: "404",
        component: () => import("@/pages/frame/view/exception/404"),
    },
    exp500: {
        name: "500错误",
        path: "500",
        component: () => import("@/pages/frame/view/exception/500"),
    },
    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'),
    },
    log_management: {
        name: '日志管理',
        component: () => import('@/pages/system/view/log'),
    },
};
export default routerMap;