@@ -6,7 +6,7 @@ import { isInChromePanel, isInElectron, isInIframe } from '@vue/devtools-shared'
6
6
import { Bridge , HandShakeServer , createDevToolsVuePlugin , initDevToolsSeparateWindow , initDevToolsSeparateWindowBridge , initViteClientHotContext , setupDevToolsBridge } from '@vue/devtools-core'
7
7
8
8
import { createApp } from 'vue'
9
- import { createMemoryHistory , createRouter } from 'vue-router'
9
+ import { type RouteRecordRaw , createMemoryHistory , createRouter } from 'vue-router'
10
10
import App from './App.vue'
11
11
import Components from '~/pages/components.vue'
12
12
import Overview from '~/pages/overview.vue'
@@ -25,14 +25,14 @@ import WaitForConnection from '~/components/WaitForConnection.vue'
25
25
import 'uno.css'
26
26
import '~/assets/styles/main.css'
27
27
28
- const routes = [
28
+ const routes : RouteRecordRaw [ ] = [
29
29
{ path : '/' , component : Index } ,
30
30
{ 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 } ,
34
34
{ path : '/i18n' , component : I18nPage } ,
35
- { path : '/timeline' , component : Timeline } ,
35
+ { path : '/timeline/:id? ' , component : Timeline } ,
36
36
{ path : '/pages' , component : Pages } ,
37
37
{ path : '/assets' , component : Assets } ,
38
38
{ path : '/graph' , component : Graph } ,
0 commit comments