From 31e21b725cd2ae35197ea90ef422d33cbe2285d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Thu, 28 Jan 2021 17:56:40 +0300 Subject: [PATCH] View switching for Calendar.vue --- src/views/Calendar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Calendar.vue b/src/views/Calendar.vue index b951005..a1e1777 100644 --- a/src/views/Calendar.vue +++ b/src/views/Calendar.vue @@ -195,8 +195,10 @@ export default { this.$refs.fullCalendar.getApi().changeView('timeGridDay') this.$refs.fullCalendar.getApi().setOption('aspectRatio', w / h + 0.04) return; + }else{ + this.$refs.fullCalendar.getApi().changeView('timeGridWeek') + this.$refs.fullCalendar.getApi().setOption('aspectRatio', w / h + 0.15) } - this.$refs.fullCalendar.getApi().setOption('aspectRatio', w / h + 0.15) } }, watch: {