Skip to content

Commit edde3bd

Browse files
feat: Add param to save select component id
1 parent a130a99 commit edde3bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/client/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import '~/assets/styles/main.css'
2828
const routes = [
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: '/pages', component: Pages },
3535
{ path: '/assets', component: Assets },
3636
{ path: '/graph', component: Graph },
3737
{ path: '/settings', component: Settings },
3838
{ path: `/${CUSTOM_TAB_VIEW}/:name`, component: CustomTabView },
39-
{ path: `/${CUSTOM_INSPECTOR_TAB_VIEW}/:name`, component: CustomInspectorTabView },
39+
{ path: `/${CUSTOM_INSPECTOR_TAB_VIEW}/:name/:id?`, component: CustomInspectorTabView },
4040
]
4141

4242
const router = createRouter({

0 commit comments

Comments
 (0)