auth.js 662 B

123456789101112131415161718192021222324
  1. /* Layout */
  2. import Layout from '@/layout'
  3. // 授权管理页面
  4. const authRoutes = [
  5. {
  6. path: '/auth',
  7. component: Layout,
  8. alwaysShow: true,
  9. redirect: '/auth/list',
  10. name: 'Auth',
  11. meta: { title: '授权管理', icon: 'el-icon-s-promotion', roles: ['admin', 'normal'], noCache: true, proxy: true },
  12. children: [
  13. {
  14. path: 'list',
  15. component: () => import('@/views/authentic/auth/index'),
  16. name: 'AuthList',
  17. meta: { title: '授权列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], affix: true, noCache: true, proxy: true }
  18. }
  19. ]
  20. }
  21. ]
  22. export default authRoutes