const routes = [
  {
    path: '/', 
   // 一级路由
    name: 'home',
    component: home,
    children: [
      {
        path: '/AssetPortrait',
    // 二级路由 name:
'AssetPortrait', component: { render(c) { return c('router-view') } }, children: [ { path: '/AssetPortrait/AssetMaintenance',
      // 三级路由 name:
'AssetMaintenance', component: AssetMaintenance }, { path: '/AssetPortrait/HostCheck', name: 'HostCheck', component: HostCheck, children: [ {
          path:
'/AssetPortrait/HostCheck/abc',
          // 四级路由
          name: 'HostCheckDetail',
          component: HostCheckDetail } ] } ] }]
posted on 2020-09-02 14:15  小名香菜~  阅读(336)  评论(0编辑  收藏  举报