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"
import Safecap from "@/components/safecap/Index"
import Management from "@/components/management/Index"
import FallProtection from "@/components/fallprotection/Index"
import UnloadingPlatform from "@/components/unloadingplatform/Index"
import Elevator from "@/components/elevator/Index"
import ProjectCheck from "@/components/projectcheck/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 },
                { path: 'safecap', component: Safecap },
                { path: 'concrete', component: Management },
                { path: 'fallprotection', component: FallProtection },
                { path: 'unloadingplatform', component: UnloadingPlatform },
                { path: 'elevator', component: Elevator },
                { path: 'projectcheck', component: ProjectCheck },
            ]
        },

    ]
})

export default router