Blame view

src/router/modules/meta.js 596 Bytes
50760eab9   Adam   auto commit the c...
1
2
3
4
5
6
  import Layout from '@/layout'
  
  const metaRouter = {
    path: '/meta',
    component: Layout,
    redirect: '/meta/page',
fedf6da38   BigBoss   menu修改
7
    // alwaysShow: true, // will always show the root menu
50760eab9   Adam   auto commit the c...
8
9
    name: 'Meta',
    meta: {
fe44789e3   BigBoss   修改路由,新增页面
10
11
      title: '元定义',
      icon: 'tree',
50760eab9   Adam   auto commit the c...
12
13
14
      roles: ['admin', 'assistant'] // you can set roles in root nav
    },
    children: [{
b58b17e1e   Adam   auto commit the c...
15
      path: 'metapage',
a6e433928   Adam   auto commit the c...
16
      component: () => import('@/views/meta/tree'),
50760eab9   Adam   auto commit the c...
17
18
      name: 'MetaList',
      meta: {
a6e433928   Adam   auto commit the c...
19
        title: 'metas.list',
fe44789e3   BigBoss   修改路由,新增页面
20
        icon: 'tree',
50760eab9   Adam   auto commit the c...
21
22
23
24
25
        roles: ['admin', 'assistant'] // or you can only set roles in sub nav
      }
    }]
  }
  export default metaRouter