You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
868 B
46 lines
868 B
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'index',
|
|
component: () => import('../views/index.vue'),
|
|
meta: {
|
|
title: '自主查询机'
|
|
}
|
|
},
|
|
{
|
|
path: '/NewBookRecommend',
|
|
name: 'NewBookRecommend',
|
|
component: () => import('../views/newBookRecommend.vue'),
|
|
meta: {
|
|
title: '新书推荐'
|
|
}
|
|
},
|
|
{
|
|
path: '/DigitalResource',
|
|
name: 'DigitalResource',
|
|
component: () => import('../views/digitalResource.vue'),
|
|
meta: {
|
|
title: '数字资源'
|
|
}
|
|
},
|
|
{
|
|
path: '/LibraryIntroduction',
|
|
name: 'LibraryIntroduction',
|
|
component: () => import('../views/libraryIntroduction.vue'),
|
|
meta: {
|
|
title: '图书管简介'
|
|
}
|
|
}
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
mode: 'history',
|
|
routes
|
|
})
|
|
|
|
export default router
|