CN-856 fix: 修复Dashboard - network overview Metric下拉默认不是第一个时,折线图无法加载
This commit is contained in:
@@ -703,9 +703,13 @@ export default {
|
||||
this.chartOption = null
|
||||
this.timer = setTimeout(() => {
|
||||
if (this.lineTab) {
|
||||
const data = this.mpackets.find(t => t.class === this.lineTab)
|
||||
if (data && data.positioning) {
|
||||
this.activeChange(data, data.positioning)
|
||||
if (this.lineTab === 'total' && this.metric === 'Sessions/s') {
|
||||
this.init()
|
||||
} else {
|
||||
const data = this.mpackets.find(t => t.class === this.lineTab)
|
||||
if (data && data.positioning) {
|
||||
this.activeChange(data, data.positioning)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.init()
|
||||
|
||||
Reference in New Issue
Block a user