This commit is contained in:
clay
2021-12-28 14:04:36 +08:00
parent a14b0e7dc1
commit 43b9044f89
22 changed files with 1597 additions and 494 deletions

View File

@@ -1,26 +1,33 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Home',
component: Home
name: 'index',
component: () => import(/* webpackChunkName: "about" */ '../views/index/index')
},
{
path: '/about',
name: 'About',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
}
path: '/sp',
name: 'SchoolProfile',
component: () => import(/* webpackChunkName: "about" */ '../views/school_profile/index')
},
{
path: '/ts',
name: 'TeachingStaff',
component: () => import(/* webpackChunkName: "about" */ '../views/teaching_staff/index')
},
{
path: '/et',
name: 'EduTeach',
component: () => import(/* webpackChunkName: "about" */ '../views/edu_teach/index')
},
]
const router = new VueRouter({
mode: 'history',
routes
})