Skip to content

Commit

Permalink
fix(date-picker): increate fault tolerance of data recovery in "cancel"[
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Nov 27, 2018
1 parent 7a99263 commit d321a0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/date-picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ export default {
},
$_onPickerCancel () {
this.$emit('cancel')
this.columnData = [...this.oldColumnData]
if (this.oldColumnData) {
this.columnData = [...this.oldColumnData]
}
},
getFormatDate (format = 'yyyy-MM-dd hh:mm') {
Expand Down

0 comments on commit d321a0e

Please sign in to comment.