diff --git a/src/packages/__VUE/calendar/demo.vue b/src/packages/__VUE/calendar/demo.vue index db4e6e0e44..5307a6b55d 100644 --- a/src/packages/__VUE/calendar/demo.vue +++ b/src/packages/__VUE/calendar/demo.vue @@ -64,7 +64,7 @@ @@ -296,7 +296,7 @@ export default defineComponent({ date6: [] as string[], date7: [] as string[], date8: '', - date9: ['2020-01-23', '2020-01-26'], + date9: [] as string[], isVisible1: false, isVisible2: false, isVisible3: false, diff --git a/src/packages/__VUE/calendaritem/index.vue b/src/packages/__VUE/calendaritem/index.vue index 2378535728..955c9ff862 100644 --- a/src/packages/__VUE/calendaritem/index.vue +++ b/src/packages/__VUE/calendaritem/index.vue @@ -278,6 +278,9 @@ export default create({ if ((type == 'range' && state.chooseData.length == 2) || type != 'range') { let selectData: any = state.chooseData.slice(0); if (type == 'week') { + if (state.chooseData.length !== 2) { + return; + } selectData = { weekDate: [handleWeekDate(state.chooseData[0] as string[]), handleWeekDate(state.chooseData[1] as string[])] };