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

@@ -253,6 +253,7 @@ export default {
if (n) this.lineTab = ''
this.$nextTick(() => {
this.echartsInit(this.mpackets, show)
if (!this.lineRefer) this.lineRefer = 'Average'
})
}
} else if (t.type === 'packets' && val === 'Packets/s') {
@@ -301,6 +302,7 @@ export default {
if (n) this.lineTab = ''
this.$nextTick(() => {
this.echartsInit(this.mpackets, show)
if (!this.lineRefer) this.lineRefer = 'Average'
})
}
} else if (t.type === 'sessions' && val === 'Sessions/s') {