// 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: '/labSystem1',
        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')
            },
            {
                path: '/labSystem1',
                name: 'labSystem1',
                // 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/labSystem1.vue')
            },
            {
                path: '/verifyEnvironment1',
                name: 'verifyEnvironment1',
                // 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/verifyEnvironment1.vue')
            },
            {
                path: '/qualityResult1',
                name: 'qualityResult1',
                // 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/qualityResult1.vue')
            },
        ]
    },
]

const router = new VueRouter({
    routes
})

export default router


