import Layout from '@/layout'

const messageRouter = {
  path: '/message',
  component: Layout,
  redirect: 'noRedirect',
  name: 'messageSet',
  meta: {
    title: '消息推送',
    icon: 'message'
  },
  children: [
    {
      path: 'banner',
      component: () => import('@/pages/message/banner'),
      name: 'message_banner',
      meta: { title: '轮播消息', noCache: true }
    },
    {
      path: 'system',
      component: () => import('@/pages/message/system'),
      name: 'message_system',
      meta: { title: '系统消息', noCache: true }
    },
    {
      path: 'order',
      component: () => import('@/pages/message/order'),
      name: 'message_order',
      meta: { title: '订单消息', noCache: true }
    }
  ]
}

export default messageRouter
