JS Fullcalendar 跳转至指定时间

2 min read
.fullCalendar( ‘gotoDate’, date )
<template>
  <FullCalendar
    ref="fullCalendar"
    :options="calendarOptions"
  />
</template>

watch(() => props.date, () => {
  fullCalendar.value?.getApi().gotoDate(props.date)
})