feat(cli): add Post page view

This commit is contained in:
Tim
2025-07-03 14:43:04 +08:00
parent 992cc01aa1
commit 2f54574815
3 changed files with 47 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
import HomePageView from '../views/HomePageView.vue'
import MessagePageView from '../views/MessagePageView.vue'
import AboutPageView from '../views/AboutPageView.vue'
import PostPageView from '../views/PostPageView.vue'
const routes = [
{
@@ -18,6 +19,11 @@ const routes = [
path: '/about',
name: 'about',
component: AboutPageView
},
{
path: '/posts/:id',
name: 'post',
component: PostPageView
}
]