From f942388a135b6959d92cced19d1c242feabd1784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Jul 2023 18:39:02 +0200 Subject: [PATCH] Add names to the routes --- src/router/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/index.js b/src/router/index.js index d527bbf..0f5e207 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,6 +11,7 @@ const router = createRouter({ routes: [ { path: '/', + name: 'main', component: MainView, beforeEnter: (to, from) => { if (!accounts.value.length) { @@ -20,10 +21,12 @@ const router = createRouter({ }, { path: '/add-account', + name: 'add-account', component: AddAccountView }, { path: '/delete-account/:id', + name: 'delete-account', component: DeleteAccountView, }, ]