NEZ-2614 fix:修改 bug

This commit is contained in:
zhangyu
2023-02-28 15:38:18 +08:00
parent 8393128961
commit bf1ecc408c
2 changed files with 10 additions and 0 deletions

View File

@@ -223,6 +223,15 @@ export default {
if (!pen.data.tooltip.legends.length) {
return
}
let positionShow = false
pen.data.tooltip.legends.forEach(item=>{
if (item.legend) {
positionShow = true
}
})
if (!positionShow) {
return;
}
this.chartParams = {
...pen.data.tooltip,
unit: this.params.unit,