index.js 1.81 KB
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'user',
    meta: { title: '用户管理' },
    component: () => import('../views/user/index.vue')
  },
  {
    path: '/user',
    name: 'user',
    meta: { title: '用户管理' },
    component: () => import('../views/user/index.vue')
  },
  {
    path: '/role',
    name: 'role',
    meta: { title: '角色管理' },
    component: () => import('../views/role/index.vue')
  },
  {
    path: '/vehicleTypeManage',
    name: 'vehicleTypeManage',
    meta: { title: '车型管理' },
    keepAlive:false,
    component: () => import('../views/vehicleTypeManage/index.vue')
  },
  {
    path: '/vehicleTypeManage/vehicleAddUpadate',
    name: 'vehicleAddUpadate',
    meta: { title: '车型库' },
    hidden:true,
    keepAlive:false,
    component: () => import('../views/vehicleTypeManage/vehicleAddUpadate.vue')
  },
  {
    path: '/orginizaManage',
    name: 'orginizaManage',
    meta: { title: '组织管理' },
    component: () => import('../views/orginizaManage/index.vue')
  },
  {
    path: '/menuManage',
    name: 'menuManage',
    meta: { title: '菜单管理' },
    component: () => import('../views/menuManage/index.vue')
  },
  {
    path: '/dictionaryManage',
    name: 'dictionaryManage',
    meta: { title: '字典管理' },
    component: () => import('../views/dictionaryManage/index.vue')
  },
  {
    path: '/dictionaryManage/dictionaryData',
    name: 'dictionaryData',
    meta: { 
      title: '字典数据',
      pushState: true
    },
    component: () => import('../views/dictionaryManage/dictionaryData/index.vue')
  },
  {
    path: '/workLog',
    name: 'workLog',
    meta: { title: '操作日志' },
    component: () => import('../views/workLog/index.vue')
  }
]

export default routes