diff --git a/src/components/ScenariosPage.vue b/src/components/ScenariosPage.vue index 97b1791..015ec3f 100644 --- a/src/components/ScenariosPage.vue +++ b/src/components/ScenariosPage.vue @@ -35,7 +35,7 @@ async function addScenario(name: string) { } async function toScenarioEditor(id: number) { - router.push('/scenarios/' + id) + router.push('/scenarios/' + id + '/editor') } getScenarios() diff --git a/src/router/index.ts b/src/router/index.ts index 5c66b69..a8de741 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -49,7 +49,7 @@ const router = createRouter({ component: ScenariosView, }, { - path: '/scenarios/:id', // Динамический параметр id + path: '/scenarios/:id/editor', // Динамический параметр id name: 'ScenariosEditorView', component: ScenariosEditorView, },