@@ -6,7 +6,7 @@ import { isInChromePanel, isInElectron, isInIframe } from '@vue/devtools-shared'
66import { Bridge , HandShakeServer , createDevToolsVuePlugin , initDevToolsSeparateWindow , initDevToolsSeparateWindowBridge , initViteClientHotContext , setupDevToolsBridge } from '@vue/devtools-core'
77
88import { createApp } from 'vue'
9- import { createMemoryHistory , createRouter } from 'vue-router'
9+ import { type RouteRecordRaw , createMemoryHistory , createRouter } from 'vue-router'
1010import App from './App.vue'
1111import Components from '~/pages/components.vue'
1212import Overview from '~/pages/overview.vue'
@@ -25,14 +25,14 @@ import WaitForConnection from '~/components/WaitForConnection.vue'
2525import 'uno.css'
2626import '~/assets/styles/main.css'
2727
28- const routes = [
28+ const routes : RouteRecordRaw [ ] = [
2929 { path : '/' , component : Index } ,
3030 { path : '/overview' , component : Overview } ,
31- { path : '/components' , component : Components } ,
32- { path : '/pinia' , component : PiniaPage } ,
33- { path : '/router' , component : RouterPage } ,
31+ { path : '/components/:id? ' , component : Components } ,
32+ { path : '/pinia/:id? ' , component : PiniaPage } ,
33+ { path : '/router/:id? ' , component : RouterPage } ,
3434 { path : '/i18n' , component : I18nPage } ,
35- { path : '/timeline' , component : Timeline } ,
35+ { path : '/timeline/:id? ' , component : Timeline } ,
3636 { path : '/pages' , component : Pages } ,
3737 { path : '/assets' , component : Assets } ,
3838 { path : '/graph' , component : Graph } ,
0 commit comments