import Vue from 'vue'
import Router from 'vue-router'
// import vantui from 'vant'
// import 'vant/lib/index.css'
import submitWork from '@/components/pages/submitWork'
import vedioShow from '@/components/pages/vedioShow'
import vedioShowS from '@/components/pages/vedioShowS'
import vedioShowT from '@/components/pages/vedioShowT'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Home',
            component: submitWork,
            meta: {
                title: '上传作业',
                requireAuth: '' // 是否需要判断是否登录,这里是需要判断
            }
        }, {
            path: '/vedioShow',
            name: 'vedioShow',
            component: vedioShow,
            meta: {
                title: '视频展示',
                requireAuth: '' // 是否需要判断是否登录,这里是需要判断
            }
        }, {
            path: '/vedioShowS',
            name: 'vedioShowS',
            component: vedioShowS,
            meta: {
                title: '视频展示',
                requireAuth: '' // 是否需要判断是否登录,这里是需要判断
            }
        },
        // {
        //     path: '/vedioShowT',
        //     name: 'vedioShowT',
        //     component: vedioShowT,
        //     meta: {
        //         title: '视频展示',
        //         requireAuth: '' // 是否需要判断是否登录,这里是需要判断
        //     }
        // }, 
    ]
})

const VueRouterPush = Router.prototype.push
Router.prototype.push = function push(to) {
    return VueRouterPush.call(this, to).catch(err => err)
}