import Vue from 'vue' import VueRouter from 'vue-router' import box from '../components/box' // import Home from '../views/Home.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: 'box', component: box, redirect: '/login', children: [ { path: 'home', name: 'home', component: () => import('@/views/head'), children: [ { path: 'enterpriseArchives', name: 'enterpriseArchives', component: () => import('@/views/enterpriseArchives'), }, { path: 'archives', name: 'archives', component: () => import('@/views/archives'), }, { path: 'safetyIndex', name: 'safetyIndex', component: () => import('@/views/safetyIndex'), }, { path: 'companyCanban', name: 'companyCanban', component: () => import('@/views/companyCanban'), }, { path: 'enterpriseRank', name: 'enterpriseRank', component: () => import('@/views/enterpriseRank'), }, // 系统管理 { path: 'systemManagement', name: 'systemManagement', component: () => import('@/views/systemManagement'), children: [ // 平安指数 { path: 'safeIndex', name: 'safeIndex', component: () => import('@/views/systemManagement/safeIndex'), }, // 企业赋分 { path: 'companyScore', name: 'companyScore', component: () => import('@/views/systemManagement/companyScore'), }, // 企业赋分详情 { path: 'companyDetails', name: 'companyDetails', component: () => import('@/views/systemManagement/companyScore/components/companyDetails'), }, // 企业名单 // { // path: 'companyList', // name: 'companyList', // component: () => import('@/views/systemManagement/companyList'), // }, // 关联设备 { path: 'correlationEquipment', name: 'correlationEquipment', component: () => import('@/views/systemManagement/correlationEquipment'), }, { path: 'correlationEquipment2', name: 'correlationEquipment2', component: () => import('@/views/systemManagement/correlationEquipment2'), }, // 企业名单 { path: 'companyList', name: 'companyList', component: () => import('@/views/systemManagement/companyList'), } ] }, // 闭环处置 { path: 'closeLoopDispose', name: 'closeLoopDispose', component: () => import('@/views/closeLoopDispose'), }, ] }, { path: 'login', name: 'login', component: () => import('@/components/login'), }, ] }] const router = new VueRouter({ mode: 'hash', routes }) export default router