Add names to the routes

This commit is contained in:
Rodolphe Bréard 2023-07-30 18:39:02 +02:00
parent 8555da8913
commit f942388a13

View file

@ -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,
},
]