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

@@ -243,6 +243,7 @@ export default {
} else { } else {
this.$nextTick(() => { this.$nextTick(() => {
this.echartsInit(this.mpackets, show) this.echartsInit(this.mpackets, show)
if (!this.lineRefer) this.lineRefer = 'Average'
}) })
} }
} else if (t.type === 'queries' && val === 'Queries/s') { } else if (t.type === 'queries' && val === 'Queries/s') {

View File

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

View File

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