vue-router 3级路由

import Layout from '@/layout'

const ptrECard = {
  path: '/ptrECard',
  component: Layout,
  redirect: '/ptrECard',
  name: 'ptrECard',
  meta: {
    title: 'ptrECard',
    icon: 'logistics'
  },
  children: [
    // eslint-disable-next-line indent
    // 油卡管理
    {
      // 油卡管理
      path: 'ptrCadList',
      component: () => import('@/views/ptrECard/ptrCadList/index'),
      name: 'ptrCadList',
      meta: {
        title: 'ptrCadList'
      },
      children: [
        // 3
        {
          path: 'pica',
          component: () => import('@/views/ptrECard/ptrCadList/oilCardManagement/pica/index'),
          name: 'pica',
          meta: {
            title: 'pica'
          }
        },
        {
          path: 'InputCardNum',
          component: () => import('@/views/ptrECard/ptrCadList/oilCardManagement/InputCardNum/index'),
          name: 'InputCardNum',
          meta: {
            title: 'InputCardNum'
          }
        }
      ]
    },
    {
      // 发卡管理
      path: 'hairpinManagement',
      component: () => import('@/views/ptrECard/ptrCadList/index'),
      name: 'hairpinManagement',
      meta: {
        title: 'hairpinManagement'
      },
      children: [
        // 3
        {
          path: 'hairpin',
          component: () => import('@/views/ptrECard/ptrCadList/hairpinManagement/hairpin/index'),
          name: 'hairpin',
          meta: {
            title: 'hairpin'
          }
        },
        {
          path: 'editorCard',
          component: () => import('@/views/ptrECard/ptrCadList/hairpinManagement/editorCard/index'),
          name: 'editorCard',
          meta: {
            title: 'editorCard'
          }
        }
      ]
    },
    {
      // 作废记录
      path: 'deleteList',
      component: () => import('@/views/ptrECard/deleteList/index'),
      name: 'deleteList',
      meta: {
        title: 'deleteList'
      }
    },
    {
      // 发卡地址
      path: 'cardAddress',
      component: () => import('@/views/ptrECard/ptrCadList/index'),
      name: 'cardAddress',
      meta: {
        title: 'cardAddress'
      },
      children: [
        // 3 添加地址
        {
          path: 'addAdress',
          component: () => import('@/views/ptrECard/ptrCadList/cardAddress/addAdress/index'),
          name: 'addAdress',
          meta: {
            title: 'addAdress'
          }
        },
        {
        // 编辑地址
          path: 'editorAdress',
          component: () => import('@/views/ptrECard/ptrCadList/cardAddress/editorAdress/index'),
          name: 'editorAdress',
          meta: {
            title: 'editorAdress'
          }
        }
      ]
    }
  ]
}

export default ptrECard

你可能感兴趣的:(vue)