import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login/Login'
import CheckInfo from '@/components/CheckInfo/CheckInfo'
import CheckTemplate from '@/components/CheckTemplate/CheckTemplate'
import ProcessingRecord from '@/components/ProcessingRecord/ProcessingRecord'
import ChannelData from '@/components/ChannelData/ChannelData'
import DetailedData from '@/components/DetailedData/DetailedData'
import UserManage from '@/components/UserManage/UserManage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      pageTitle: '用户登录',
      meta: {
        pageTitle: '用户登录'
      }
    },
    {
      path: '/CheckInfo',
      name: 'CheckInfo',
      component: CheckInfo,
      pageTitle: '检测信息',
      meta: {
        pageTitle: '检测信息'
      }
    },
    {
      path: '/CheckTemplate',
      name: 'CheckTemplate',
      component: CheckTemplate,
      pageTitle: '检测模板',
      meta: {
        pageTitle: '检测模板'
      }
    },
    {
      path: '/ProcessingRecord',
      name: 'ProcessingRecord',
      component: ProcessingRecord,
      pageTitle: '处理记录',
      meta: {
        pageTitle: '处理记录'
      }
    },
    {
      path: '/ChannelData',
      name: 'ChannelData',
      component: ChannelData,
      pageTitle: '渠道数据',
      meta: {
        pageTitle: '渠道数据'
      }
    },
    {
      path: '/DetailedData',
      name: 'DetailedData',
      component: DetailedData,
      pageTitle: '详细数据',
      meta: {
        pageTitle: '详细数据'
      }
    },
    {
      path: '/UserManage',
      name: 'UserManage',
      component: UserManage,
      pageTitle: '用户管理',
      meta: {
        pageTitle: '用户管理'
      }
    }
  ]
})
