123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import Home from './views/Home.vue'
- Vue.use(Router)
- export default new Router({
- mode: 'history',
- linkActiveClass: 'active',
- base: process.env.BASE_URL,
- routes: [
- {
- path: '/',
- name: 'home',
- component: Home
- },
- {
- 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: '/download',
- name: 'download',
- // 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: "download" */ './views/Download.vue')
- },
- {
- path: '/docs',
- name: 'docs',
- // 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: "docs" */ './views/Docs.vue')
- },
- {
- path: '/publications',
- name: 'publications',
- // 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: "publications" */ './views/Publications.vue')
- },
- {
- path: '/report',
- name: 'bugreport',
- // 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: "bugreport" */ './views/BugReport.vue')
- },
- {
- path: '/manual',
- name: 'manual',
- // 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: "manual" */ './views/Manual.vue')
- },
- {
- path: '/404',
- name: 'notfound',
- component: () => import(/* webpackChunkName: "notfound" */ './views/NotFound.vue')
- },
- {
- path: '*',
- redirect: { name: 'notfound' }
- }
- ]
- })
|