Add names to the routes
This commit is contained in:
parent
8555da8913
commit
f942388a13
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ const router = createRouter({
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
|
name: 'main',
|
||||||
component: MainView,
|
component: MainView,
|
||||||
beforeEnter: (to, from) => {
|
beforeEnter: (to, from) => {
|
||||||
if (!accounts.value.length) {
|
if (!accounts.value.length) {
|
||||||
|
@ -20,10 +21,12 @@ const router = createRouter({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/add-account',
|
path: '/add-account',
|
||||||
|
name: 'add-account',
|
||||||
component: AddAccountView
|
component: AddAccountView
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/delete-account/:id',
|
path: '/delete-account/:id',
|
||||||
|
name: 'delete-account',
|
||||||
component: DeleteAccountView,
|
component: DeleteAccountView,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue