diff --git a/pages/calendar/[mode].vue b/pages/calendar/[mode].vue index 362509e..c0c2dd4 100644 --- a/pages/calendar/[mode].vue +++ b/pages/calendar/[mode].vue @@ -57,7 +57,7 @@ const calendarOptionsGrid = computed(() => { select: function (info) { console.log(info) - router.push(`/standardEntity/events/edit/?start=${info.startStr}&end=${info.endStr}&source=grid`) + router.push(`/standardEntity/events/create/?startDate=${encodeURIComponent(info.startStr)}&endDate=${encodeURIComponent(info.endStr)}`) }, eventClick: function (info) { console.log(info.event) @@ -89,7 +89,7 @@ const calendarOptionsTimeline = ref({ }], selectable: true, select: function (info) { - router.push(`/events/edit/?start=${info.startStr}&end=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`) + router.push(`/events/edit/?startDate=${info.startStr}&endDate=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`) }, eventClick: function (info){ console.log(info.event)