import App from '../App'

const home = r => require.ensure([], () => r(require('../views/home')), 'home')
const blank = r => require.ensure([], () => r(require('../views/blank')), 'blank')


const discuss = r => require.ensure([], () => r(require('../views/discuss/index.vue')), 'index')
const creatDiscuss = r => require.ensure([], () => r(require('../views/discuss/add-edit.vue')), 'creatDiscuss')
const questionNaire = r => require.ensure([], () => r(require('../views/question-naire/question-list.vue')), 'questionNaire')
		
const topicList = r => require.ensure([], () => r(require('../views/topicManage/index.vue')), 'topicList')
const reportSet = r => require.ensure([], () => r(require('../views/report/reportSet.vue')), 'reportSet')

const discussInfoList = r => require.ensure([], () => r(require('../views/discussInfoList.vue')), 'discussInfoList')
	

export default [{
    path: '/',
    component: App,
    children: [
        {
            path: '',
            redirect: '/home'
        },{
            path: '/questionNaire',
            component: questionNaire
        },{
            path: '/home',
            component: home
        },

        {
            path: '/discuss-list',
            component: discuss
        },
        {
            path: '/creat-discuss',
            component: creatDiscuss
        },
        {
            path: '/question-naire',
            component: questionNaire
        },
		{
		    path: '/topic-list',
		    component: topicList
		},
		{
		    path: '/report-set',
		    component: reportSet
        },
        {
            path: '/discuss-info-list',
            component: discussInfoList
        },
		
    ]
}]