// import Vue from 'vue'
// import VueRouter from 'vue-router'
// import labSystem from '../views/labSystem.vue'
//
// Vue.use(VueRouter)
//
// const routes = [
//     {
//         path: '/',
//         name: 'labSystem',
//         component: labSystem
//     },
// ]
//
// const router = new VueRouter({
//   // mode: 'history',
//   base: process.env.BASE_URL,
//   routes
// })
//
// export default router

import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home,
        redirect: '/verifyEnvironment',
        children: [
            {
                path: '/labSystem',
                name: 'labSystem',
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import(/* webpackChunkName: "about" */ '../views/labSystem.vue')
            },
            {
                path: '/verifyEnvironment',
                name: 'verifyEnvironment',
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import(/* webpackChunkName: "about" */ '../views/verifyEnvironment.vue')
            },
            {
                path: '/qualityResult',
                name: 'qualityResult',
                // route level code-splitting
                // this generates a separate chunk (about.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: () => import(/* webpackChunkName: "about" */ '../views/qualityResult.vue')
            },
            {
                path: '/testAnalysis',
                name: 'testAnalysis',
                    // route level code-splitting
                    // this generates a separate chunk (about.[hash].js) for this route
                    // which is lazy-loaded when the route is visited.
                    component: () => import(/* webpackChunkName: "about" */ '../views/testAnalysis.vue')
            },
        ]
    },
]

const router = new VueRouter({
    routes
})

export default router


