/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout';
// 前端配置
const nestedRouter = {
  path: '/front',
  component: Layout,
  redirect: 'noRedirect',
  meta: { title: '前端配置' },
  children: [
    {
      path: 'unscramble',
      component: resolve =>
        require(['@/views/front/unscramble/index'], resolve),
      name: 'unscramble',
      meta: { title: '政策解读' }
    },
    {
      path: 'addUnscramble',
      component: resolve => require(['@/views/front/unscramble/add'], resolve),
      name: 'addUnscramble',
      meta: { title: '政策解读' },
      hidden: true
    },
    {
      path: 'expressNews',
      component: resolve =>
        require(['@/views/front/expressNews/index'], resolve),
      name: 'expressNews',
      meta: { title: '资讯快报' }
    },
    {
      path: 'addExpressNews',
      component: resolve => require(['@/views/front/expressNews/add'], resolve),
      name: 'addExpressNews',
      meta: { title: '资讯快报' },
      hidden: true
    }
  ]
};

export default nestedRouter;
