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

Vue.use(VueRouter)

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

const router = new VueRouter({
  routes
})

export default router
