import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeWeb from '../views/HomeWeb.vue'
import HomeMobile from '../views/HomeMobile.vue'
import QuestionJudge from '../views/QuestionJudge.vue'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  {
    path: '/web',
    name: 'HomeWeb',
    component: HomeWeb,
    children: [
      {
        path: '/question-judge',
        name: 'QuestionJudge',
        component: QuestionJudge,
      }
    ]
  },
  {
    path: '/mobile',
    name: 'HomeMobile',
    component: HomeMobile
  },
]

const router = new VueRouter({
  routes
})

export default router
