lrf402788946 5 년 전
부모
커밋
bdc3b0a600
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/calendar.vue

+ 1 - 1
components/calendar.vue

@@ -34,7 +34,7 @@ import interactionPlugin from '@fullcalendar/interaction';
 import _ from 'lodash';
 export default {
   props: {
-    year: { type: String, default: `${new Date().getFullYear()}` }, //当前日历的年份
+    year: { type: null, default: `${new Date().getFullYear()}` }, //当前日历的年份
     events: { type: Array, default: () => [] },
     useDraft: { type: Boolean, default: true },
     useEvent: { type: Boolean, default: true },