feat: do not use path as date

This commit is contained in:
2026-04-26 15:10:30 +02:00
parent af9b20485e
commit 34c410b687
7 changed files with 29 additions and 34 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: HomeView },
{ path: '/articles/:year(\\d{4})/:month(\\d{2})/:day(\\d{2})/', component: ArticleView },
{ path: '/articles/:pathMatch(.*)/', component: ArticleView },
{ path: '/:pathMatch(.*)', component: NotFoundView },
],
})