feat: web based SPA

This commit is contained in:
2026-04-25 19:15:41 +02:00
parent a18a25294c
commit 9162c149c4
5 changed files with 10 additions and 12 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
import ArticleView from '@views/ArticleView.vue'
import HomeView from '@views/HomeView.vue'
import NotFoundView from '@views/NotFoundView.vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes: [
{ path: '/', component: HomeView },
{ path: '/articles/:year(\\d{4})/:month(\\d{2})/:day(\\d{2})', component: ArticleView },
{ path: '/articles/:year(\\d{4})/:month(\\d{2})/:day(\\d{2})/', component: ArticleView },
{ path: '/:pathMatch(.*)', component: NotFoundView },
],
})