ts-bigscreen-vue/src/router/index.js

64 lines
1.4 KiB
JavaScript

import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'index',
component: () => import('../views/index.vue')
},
// 教务详情
{
path: '/education-detail',
name: 'EducationDetail',
component: () => import('@/views/detail/EducationDetail.vue')
},
// 科研详情
{
path: '/research-detail',
name: 'ResearchDetail',
component: () => import('@/views/detail/ResearchDetail.vue')
},
// 学生详情
{
path: '/student-detail',
name: 'StudentDetail',
component: () => import('@/views/detail/StudentDetail.vue')
},
// 教职工详情
{
path: '/staff-detail',
name: 'StaffDetail',
component: () => import('@/views/detail/StaffDetail.vue')
},
// 资产详情
{
path: '/asset-detail',
name: 'AssetDetail',
component: () => import('@/views/detail/AssetDetail.vue')
},
// 文献详情
{
path: '/literature-detail',
name: 'LiteratureDetail',
component: () => import('@/views/detail/LiteratureDetail.vue')
},
// 一卡通详情页面
{
path: '/card-detail',
name: 'CardDetail',
component: () => import('@/views/detail/CardDetail.vue')
},
{
path: '/big-screen',
name: 'BigScreen',
component: () => import('@/views/BigScreen.vue')
}
]
const router = new VueRouter({
routes
})
export default router