RuoYi
2019-12-02 bc827ef37731948c0643499cfa9dcb98df85c77e
ruoyi-ui/src/router/index.js
@@ -27,17 +27,6 @@
// 公共路由
export const constantRoutes = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path*',
        component: () => import('@/views/redirect')
      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/login'),
    hidden: true
@@ -74,7 +63,7 @@
      {
        path: 'profile',
        component: () => import('@/views/system/user/profile/index'),
        name: '个人中心',
        name: 'Profile',
        meta: { title: '个人中心', icon: 'user' }
      }
    ]
@@ -87,11 +76,25 @@
      {
        path: 'type/data/:dictId(\\d+)',
        component: () => import('@/views/system/dict/data'),
        name: '字典数据',
        name: 'Data',
        meta: { title: '字典数据', icon: '' }
      }
    ]
  }
  },
  {
    path: '/gen',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'edit',
        component: () => import('@/views/tool/gen/editTable'),
        name: 'GenEdit',
        meta: { title: '修改生成配置' }
      }
    ]
  },
  { path: '*', redirect: '/404', hidden: true }
]
export default new Router({