Working calender/service
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
|
||||
|
||||
|
||||
import ServiceHome from './ServiceHome.vue' // Adjust the import path
|
||||
// Import the new component at the top
|
||||
import ServiceHome from './ServiceHome.vue'
|
||||
import CalendarCustomer from './calender/CalendarCustomer.vue'
|
||||
import ServiceCalendar from './ServiceCalendar.vue'
|
||||
|
||||
const serviceRoutes = [
|
||||
{
|
||||
@@ -11,14 +10,20 @@ const serviceRoutes = [
|
||||
component: ServiceHome
|
||||
},
|
||||
|
||||
// --- NEW ROUTE FOR THE MASTER CALENDAR ---
|
||||
{
|
||||
path: '/service/calendar', // Note: No '/:id' parameter
|
||||
name: 'ServiceCalendar',
|
||||
component: ServiceCalendar,
|
||||
},
|
||||
// -----------------------------------------
|
||||
|
||||
{
|
||||
path: '/service/calender/:id',
|
||||
name: 'CalenderCustomer',
|
||||
component: CalendarCustomer,
|
||||
},
|
||||
|
||||
{
|
||||
path: '/service/calender/:id', // Note the typo, should likely be 'calendar'
|
||||
name: 'CalenderCustomer',
|
||||
component: CalendarCustomer,
|
||||
},
|
||||
]
|
||||
|
||||
export default serviceRoutes
|
||||
//sourceMappingURL=index.ts.map
|
||||
//sourceMappingURL=index.ts.map
|
||||
Reference in New Issue
Block a user