NEZ-2018 fix:使用时间控件时选择最近使用时间出错,再次点击自定义日期按钮报错

This commit is contained in:
zhangyu
2022-07-11 15:57:16 +08:00
parent e7bc257339
commit 1ac93fd7a4

View File

@@ -313,8 +313,8 @@ export default {
}
},
historyChange (item) {
this.searchTime[0] = item.start
this.searchTime[1] = item.end
this.oldSearchTime[0] = this.momentTz(item.start)
this.oldSearchTime[1] = this.momentTz(item.end)
this.isCustom = true
this.showDropdown()
this.$emit('change', this.searchTime)