fix: CN-1518 DNS流量曲线图的交互逻辑优化(减少请求次数)

This commit is contained in:
hyx
2023-12-20 10:41:43 +08:00
parent 56ad79bd0d
commit 19160c0da1
2 changed files with 45 additions and 4 deletions

View File

@@ -387,7 +387,11 @@ export default {
this.legendSelectChange(item, index, 'active')
this.showMarkLine = !item.invertTab
}
this.initTabData(this.metric, this.showMarkLine, 'active')
if (isClick) {
this.initTabData(this.metric, this.showMarkLine, 'active')
} else {
this.init(this.metric, this.showMarkLine, 'active')
}
},
mouseenter (item) {
if (this.isNoData) return