import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
	{
	  path: '/',
	  name: 'about',
	  component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
	},
	{
		path: '/',
		name: 'Manage',
		component: ()=>import('../views/Manage.vue'),
		redirect:"/index",
		children:[
			{
				path: 'index',
				name: 'index',
				component: ()=>import('../views/index.vue'),
			},
			{
				path: 'acidrollingcapacity',
				name: 'AcidrollingCapacity',
				component: ()=>import('../views/AcidrollingCapacity.vue'),
			},
			{
				path: 'acidrollingplan',
				name: 'AcidrollingPlan',
				component: ()=>import('../views/AcidrollingPlan.vue'),
			},
			{
				path: 'acidrollingactual',
				name: 'AcidrollingActual',
				component: ()=>import('../views/AcidrollingActual.vue'),
			},
			{
				path: 'promotion',
				name: 'Promotion',
				component: ()=>import('../views/Promotion.vue'),
			},{
				path: 'quanyi',
				name: 'Quanyi',
				component: ()=>import('../views/Quanyi.vue'),
			},
			{
				path: 'review',
				name: 'Review',
				component: ()=>import('../views/Review.vue'),
			}
		]
	}
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
