vue-element-template實戰(二)新增頁面


1、修改router/index.js,新增路由

{
    path: '/test',
    component: Layout,
    redirect: '/test/test01',
    name: 'Test',
      alwaysShow: true,
    meta: { title: '系統管理', icon: 'example' },
    children: [
      {
        path: 'test01',
        name: 'Test01',
        component: () => import('@/views/test01/index'),
        meta: { title: '賬號管理', icon: 'example' }
      }
    ]
  },

2、views下新建test/index.vue

完畢,最終效果圖:

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM