From 682e02234d768cae65c07c213799f4a5c9bc78a8 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 9 Apr 2023 11:02:38 +0200 Subject: [PATCH] new task view by id --- src/router/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/router/index.ts b/src/router/index.ts index 6bda893..9c7143c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -18,6 +18,12 @@ const router = createRouter({ path: '/new-task', name: 'new-task', component: () => import('../views/task/NewTask.vue') + }, + { + path: '/task/:id', + name: 'task-view', + props: true, + component: () => import('../views/task/TaskView.vue') } ] })