added base path to the vue router

This commit is contained in:
2025-10-24 19:17:55 +02:00
parent 92f6da672b
commit 0a5fbc92c7

View File

@@ -8,11 +8,11 @@ import Detail from '@/pages/Detail.vue'
const app = createApp(App)
const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: Home},
{ path: '/:name', component: Detail, props: true}
]
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{ path: '/', component: Home },
{ path: '/:name', component: Detail, props: true }
]
})
app.use(router)