generated from VLADIMIR/template_frontend
fix page
This commit is contained in:
@@ -35,7 +35,7 @@ async function addScenario(name: string) {
|
||||
}
|
||||
|
||||
async function toScenarioEditor(id: number) {
|
||||
router.push('/scenarios/' + id)
|
||||
router.push('/scenarios/' + id + '/editor')
|
||||
}
|
||||
|
||||
getScenarios()
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ const router = createRouter({
|
||||
component: ScenariosView,
|
||||
},
|
||||
{
|
||||
path: '/scenarios/:id', // Динамический параметр id
|
||||
path: '/scenarios/:id/editor', // Динамический параметр id
|
||||
name: 'ScenariosEditorView',
|
||||
component: ScenariosEditorView,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user