import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login/login' // 登陆
import Index from '@/components/index/index' // 首页
import ZDRY from '@/components/zhongdianrenyuan/zhongdianrenyuan' // 重点人员
import ZHTX from '@/components/zhihuitixi/zhihuitixi' // 指挥体系
import ZDHJ from '@/components/zhongdianhuanjie/zhongdianhuanjie' // 重点环节
import YJCB from '@/components/yingjichubei/yingjichubei' // 应急储备
import ZHGL from '@/components/zhuanghaoguanli/zhuanghaoguanli' // 账户管理
import Forms from '@/components/forms' // 报表

Vue.use(Router)

export default new Router({
	// mode: 'history',
	// base: '/dist/',
	routes: [{
		path: '/',
		name: 'Login',
		component: Login
	}, {
		path: '/dist/index',
		name: 'index',
		redirect: '/dist/index/zdry', // 设置默认打开的页面
		component: Index,
		children: [{
			path: 'zdry',
			name: 'ZDRY',
			component: ZDRY // 重点人员
		}, {
			path: 'zhtx',
			name: 'ZHTX',
			component: ZHTX // 指挥体系
		}, {
			path: 'zdhj',
			name: 'ZDHJ',
			component: ZDHJ // 重点环节
		}, {
			path: 'yjcb',
			name: 'YJCB',
			component: YJCB // 应急储备
		}, {
			path: 'zhgl',
			name: 'ZHGL',
			component: ZHGL // 账户管理
		},
		{
			path: 'forms',
			name: 'Forms',
			component: Forms // 报表
		}]
	}]
})
