text: import Vue from 'vue'
  import Router from 'vue-router'
  import Login from '@/components/Login'
  import Register from '@/components/Register'
  import Header from '@/components/Header'
  import SideBar from '@/components/SideBar'
  import Mainbox from '@/components/Mainbox'
  
  Vue.use(Router)
  
  var router = new Router({
    routes: [
      // {
      //   path: '/',
      //   components: {
      //     'default': Header,
      //     'left': SideBar,
      //     'main': Mainbox
      //   }
      // },
      {
        path: '/login',
        name: 'login',
        component: Login,
        meta: {
          title: 'Login'
        }
      },
      {
        path: '/register/:username/:password',
        name: 'register',
        component: Register,
        meta: {
          title: 'Register'
        }
      }
    ]
  })
  
  
  export default router
  