import Layout from '@/layout'

const financeRouter = {
  path: '/finance',
  component: Layout,
  redirect: 'noRedirect',
  name: 'finance',
  meta: {
    title: '财务管理',
    icon: 'finance'
  },
  children: [
    {
      path: 'flow',
      component: () => import('@/pages/finance/flow'),
      name: 'finance_flow',
      meta: { title: '流水账单', noCache: true }
    },
    {
      path: 'reward',
      component: () => import('@/pages/finance/reward'),
      name: 'finance_reward',
      meta: { title: '奖励结算', noCache: true }
    }
  ]
}

export default financeRouter
