diff --git a/components/tpf-time-range/tpf-time-range.vue b/components/tpf-time-range/tpf-time-range.vue index ab34330..30f14d7 100644 --- a/components/tpf-time-range/tpf-time-range.vue +++ b/components/tpf-time-range/tpf-time-range.vue @@ -113,6 +113,10 @@ export default{ this.$refs.popup.open(); }, closePopup(action=""){ + if(action == "cancel"){ + this.$refs.popup.close(); + return false; + } if(this.compareTwoTimeRange(this.startDefaultTimeArr , this.endDefaultTimeArr)){ uni.showToast({ title:"开始时间不能大于结束时间",