chore: Refactor router configuration and form component in KsDocumentForm.vue
This commit is contained in:
@@ -14,15 +14,16 @@ const router = createRouter({
|
||||
component: () => import('@/views/Dashboard.vue')
|
||||
},
|
||||
{
|
||||
path: '/ksdocuments',
|
||||
name: 'ks-documents',
|
||||
component: () => import('@/views/pages/KsDocuments.vue'),
|
||||
path: '/ksdocuments',
|
||||
children: [
|
||||
{path: 'new', name: 'ks-documents-new', component: () => import('@/views/pages/KsDocumentForm.vue')},
|
||||
{path: '', name: 'ks-document', component: () => import('@/views/pages/KsDocuments.vue')},
|
||||
{path: 'new', name: 'ks-document-new', component: () => import('@/views/pages/KsDocumentForm.vue')},
|
||||
{path: ':id', name: 'ks-document-edit', component: () => import('@/views/pages/KsDocumentForm.vue')}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user