Browse Source

View switching for Calendar.vue

main
Yiğit Çolakoğlu 4 years ago
parent
commit
1f732c45a9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/Calendar.vue

+ 3
- 1
src/views/Calendar.vue View File

@ -195,8 +195,10 @@ export default {
this.$refs.fullCalendar.getApi().changeView('timeGridDay') this.$refs.fullCalendar.getApi().changeView('timeGridDay')
this.$refs.fullCalendar.getApi().setOption('aspectRatio', w / h + 0.04) this.$refs.fullCalendar.getApi().setOption('aspectRatio', w / h + 0.04)
return; 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: { watch: {


Loading…
Cancel
Save