zl程序教程

您现在的位置是:首页 >  工具

当前栏目

Avuejs新增页面并实现路由跳转不显示在菜单上

路由 实现 显示 页面 菜单 跳转 新增
2023-09-14 09:04:07 时间
import Layout from '@/page/index/'
export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
        path: 'index',
        name: '首页',
        component: () =>
            import ( /* webpackChunkName: "views" */ '@/page/wel')
    }]
}, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
        path: 'index',
        name: '个人信息',
        component: () =>
            import ( /* webpackChunkName: "page" */ '@/views/upms/user/info'),
    }]
},
  {
    path: '/device/standarddetails',
    component: Layout,
    redirect: '/device/standarddetails/index',
    children: [{
      path: 'index',
      name: '标准报告',
      component: () =>
        import ( /* webpackChunkName: "page" */ '@/views/device/standardDetails'),
    }]
  },
  {
    path: '/device/comparedetails',
    component: Layout,
    redirect: '/device/comparedetails/index',
    children: [{
      path: 'index',
      name: '对比报告',
      component: () =>
        import ( /* webpackChunkName: "page" */ '@/views/device/compareDetails'),
    }]
  }
]

 

如图: