fix(service-auto): flatten routes — parent fără component bloca randarea
Vue Router 4 cu rută parent fără `component` nu știe în ce <router-view> să randeze copiii. Soluție: ComenziBrowse și ComandaNoua devin rute top-level (același pattern ca /dashboard). Descoperit în QA P2.5: URL-ul era corect (/service-auto/comenzi) dar conținutul era blank — PWA service worker servea cache vechi, ascunzând bug-ul de router. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -137,22 +137,16 @@ const routes = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/service-auto',
|
path: '/service-auto/comenzi',
|
||||||
meta: { requiresAuth: true },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'comenzi',
|
|
||||||
name: 'Comenzi',
|
name: 'Comenzi',
|
||||||
component: () => import('@/modules/service-auto/views/ComenziBrowseView.vue'),
|
component: () => import('@/modules/service-auto/views/ComenziBrowseView.vue'),
|
||||||
meta: { requiresAuth: true, title: 'Comenzi - Service Auto' }
|
meta: { requiresAuth: true, title: 'Comenzi - Service Auto' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'comanda-noua',
|
path: '/service-auto/comanda-noua',
|
||||||
name: 'ComandaNoua',
|
name: 'ComandaNoua',
|
||||||
component: () => import('@/modules/service-auto/views/ComandaNoua.vue'),
|
component: () => import('@/modules/service-auto/views/ComandaNoua.vue'),
|
||||||
meta: { requiresAuth: true, title: 'Comandă Nouă - Service Auto' }
|
meta: { requiresAuth: true, title: 'Comandă Nouă - Service Auto' }
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/settings',
|
path: '/settings',
|
||||||
|
|||||||
Reference in New Issue
Block a user