Skip to content

Commit

Permalink
Routing (#38)
Browse files Browse the repository at this point in the history
* Finally remove that default about page

* Lazy load routes
  • Loading branch information
daniel-panhead authored Oct 9, 2023
1 parent 471680a commit bb9bfcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
18 changes: 5 additions & 13 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import IdeasView from '@/views/IdeasView.vue'
import TeamView from '@/views/TeamView.vue'
import ELSIView from '@/views/ELSIView.vue'
import GroupAView from '@/views/enzymosome/GroupAView.vue'
const HomeView = () => import('@/views/HomeView.vue')
const IdeasView = () => import('@/views/IdeasView.vue')
const TeamView = () => import('@/views/TeamView.vue')
const ELSIView = () => import('@/views/ELSIView.vue')
const GroupAView = () => import('@/views/enzymosome/GroupAView.vue')

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
Expand Down Expand Up @@ -35,14 +35,6 @@ const router = createRouter({
path: '/enzymosome/enzyme-activity-assays',
name: 'enzyme-activity-assays',
component: GroupAView
},
{
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('../views/AboutView.vue')
}
]
})
Expand Down
15 changes: 0 additions & 15 deletions src/views/AboutView.vue

This file was deleted.

0 comments on commit bb9bfcc

Please sign in to comment.