fix:防止图表mousedown触发clickoutside事件

This commit is contained in:
zyh
2023-06-12 10:51:09 +08:00
parent 43fcb64291
commit 5fff9ef786
14 changed files with 86 additions and 19 deletions

View File

@@ -516,11 +516,7 @@ export default {
setTimeout(() => {
const start = new Date().setHours(new Date().getHours() - 1)
const end = new Date()
if (this.from === 'dashboard') {
this.timeRange = this.$store.getters.getTimeRange
} else {
this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
}
this.timeRange = [bus.computeTimezoneTime(start), bus.computeTimezoneTime(end)]
this.prevChart = {
...lodash.cloneDeep(this.editChart),
loaded: true