import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login/Login'
import Index from '@/components/index/Index'
import DevMgr from '@/components/dev_mgr/DevMgr'
import Balance from '@/components/balance/Balance'
import SJDZ from '@/components/shangjiaduizhang/shangjiaduizhang'
import YSFX from '@/components/yongshuifenxi/yongshuifenxi'
import FLSZ from '@/components/feilvset/feilvset'
import ZHGL from '@/components/zhanghaoguanli/zhanghaoguanli'

Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: 'Login',
		component: Login
	}, {
		path: '/index',
		name: 'index',
		redirect:'/index/devmgr', // 设置默认打开的页面
		component: Index,
		children: [{
			path: 'devmgr',
			name: 'DevMgr',
			component: DevMgr
		},{
			path: 'balan',
			name: 'Balance',
			component: Balance
		},{
			path: 'sjdz',
			name: 'SJDZ',
			component: SJDZ
		},{
			path: 'ysfx',
			name: 'YSFX',
			component: YSFX
		},{
			path: 'flsz',
			name: 'FLSZ',
			component: FLSZ
		},{
			path: 'zhgl',
			name: 'ZHGL',
			component: ZHGL
		}]
	}]
})
