import Vue from 'vue'
import Router from 'vue-router'
const Login = () => import('@/components/Login')
const Index = () => import('@/components/Index')
const Monitor = () => import('@/pages/Monitor')
const EquipList = () => import('@/pages/EquipList')
Vue.use(Router)

export default new Router({
  routes: [{
      path: '',
      redirect: '/index/list'
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/index',
      component: Index,
      children: [
        {
          path: 'monitor',
          component: Monitor,
        },
        {
          path: 'list',
          component: EquipList,
        },
      ]
    },
    
  ]
})
