import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from "@/components/Index"
import Construction from "@/components/construction/Index"
import RealName from "@/components/realname/Index"
import EarlyWarning from "@/components/earlywarning/Index"
import Supervisory from "@/components/supervisory/Index"
import Tower from "@/components/tower/Index"
import Noise from "@/components/noise/Index"


Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        {
            path: '/', component: Index,
            children: [
                { path: '', component: Construction },
                { path: 'realname', component: RealName },
                { path: 'earlywarning', component: EarlyWarning },
                { path: 'supervisory', component: Supervisory },
                { path: 'tower', component: Tower },
                { path: 'noise', component: Noise },
            ]
        },

    ]
})

export default router