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.
|
|
|
import Vue from 'vue';
|
|
|
|
import VueRouter from 'vue-router';
|
|
|
|
import Home from 'views/FirstPage/FirstPage.vue';
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
// 首页
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Home',
|
|
|
|
component: Home,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/apply',
|
|
|
|
name: 'apply',
|
|
|
|
component: () => import('views/Apply/apply.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/file',
|
|
|
|
name: 'file',
|
|
|
|
component: () => import('views/File/File.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/pay',
|
|
|
|
name: 'pay',
|
|
|
|
component: () => import('views/ApplyPay/Pay.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/peopleList',
|
|
|
|
name: 'peopleList',
|
|
|
|
component: () => import('views/PeopleList/PeopleList.vue'),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|