diff --git a/src/components/DateCalendar.vue b/src/components/DateCalendar.vue index 0b6b105b..c4c948f7 100755 --- a/src/components/DateCalendar.vue +++ b/src/components/DateCalendar.vue @@ -118,9 +118,9 @@ limitations under the License. --> v-for="(i, j) in local.months" @click=" is($event) && - ((state.showMonths = m === 'M'), + ((state.showMonths = state.m === 'M'), (state.month = j), - m === 'M' && ok('m')) + state.m === 'M' && ok('m')) " :class="[ status( @@ -142,7 +142,7 @@ limitations under the License. --> v-for="(i, j) in years" @click=" is($event) && - ((state.showYears = m === 'Y'), + ((state.showYears = state.m === 'Y'), (state.year = i), state.m === 'Y' && ok('y')) " @@ -278,6 +278,7 @@ limitations under the License. -->