feat: about page and better config
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import AboutView from '@views/AboutView.vue'
|
||||
import ArticleView from '@views/ArticleView.vue'
|
||||
import HomeView from '@views/HomeView.vue'
|
||||
import NotFoundView from '@views/NotFoundView.vue'
|
||||
@@ -7,6 +8,7 @@ const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', component: HomeView },
|
||||
{ path: '/about/', component: AboutView },
|
||||
{ path: '/articles/:pathMatch(.*)/', component: ArticleView },
|
||||
{ path: '/:pathMatch(.*)', component: NotFoundView },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user