diff --git a/vue3/src/apps/tandoor/Tandoor.vue b/vue3/src/apps/tandoor/Tandoor.vue index 3e0eab88a..90f57eeb4 100644 --- a/vue3/src/apps/tandoor/Tandoor.vue +++ b/vue3/src/apps/tandoor/Tandoor.vue @@ -1,46 +1,64 @@ @@ -53,7 +71,10 @@ export default defineComponent({ components: {}, mixins: [], data() { - return {} + return { + drawer: true, + rail: true, + } }, mounted() { diff --git a/vue3/src/apps/tandoor/main.ts b/vue3/src/apps/tandoor/main.ts index 6ba29b35f..b727fbc12 100644 --- a/vue3/src/apps/tandoor/main.ts +++ b/vue3/src/apps/tandoor/main.ts @@ -12,9 +12,11 @@ import RecipeSearchPage from "@/pages/RecipeSearchPage.vue"; import RecipeViewPage from "@/pages/RecipeViewPage.vue"; const routes = [ - {path: '/search', component: RecipeSearchPage}, - {path: '/shopping', component: ShoppingListPage}, - {path: '/recipe/:id', component: RecipeViewPage, props: true}, + {path: '/', redirect: '/search', name: 'index'}, + {path: '/search', component: RecipeSearchPage, name: 'view_search'}, + {path: '/shopping', component: ShoppingListPage, name: 'view_shopping'}, + {path: '/recipe/:id', component: RecipeViewPage, name: 'view_recipe', props: true}, + {path: '/recipe/edit/:id', component: RecipeViewPage, name: 'view_recipe', props: true}, ] const router = createRouter({