You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/src/router/index.js

91 lines
2.4 KiB

2 years ago
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'),
},
2 years ago
{
path: 'safetyIndex',
name: 'safetyIndex',
component: () => import('@/views/safetyIndex'),
},
// 系统管理
{
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: 'companyList',
name: 'companyList',
component: () => import('@/views/systemManagement/companyList'),
},
// 关联设备
{
path: 'correlationEquipment',
name: 'correlationEquipment',
component: () => import('@/views/systemManagement/correlationEquipment'),
},
2 years ago
// 企业名单
{
path: 'companyList',
name: 'companyList',
component: () => import('@/views/systemManagement/companyList'),
}
]
}
2 years ago
]
},
{
path: 'login',
name: 'login',
component: () => import('@/components/login'),
},
]
}]
const router = new VueRouter({
2 years ago
mode: 'hash',
2 years ago
routes
})
export default router