fix: 修复tab选项卡平局数为0时消毁当前tab选项卡时,参考线无默认值问题

This commit is contained in:
@changcode
2022-11-22 15:01:30 +08:00
parent 2cae53e83a
commit bf008fe944
3 changed files with 5 additions and 0 deletions

View File

@@ -227,6 +227,7 @@ export default {
} else {
this.$nextTick(() => {
this.echartsInit(this.mpackets)
if (!this.lineRefer) this.lineRefer = 'Average'
})
}
} else if (t.type === 'packets' && val === 'Packets/s') {
@@ -268,6 +269,7 @@ export default {
} else {
this.$nextTick(() => {
this.echartsInit(this.mpackets)
if (!this.lineRefer) this.lineRefer = 'Average'
})
}
}