fix: 修复因tabIndex数据类型改变导致的 npm下钻网络质量概览图展示错误

This commit is contained in:
@changcode
2022-12-15 10:29:04 +08:00
parent 7f79ec5727
commit fadfe1612e

View File

@@ -79,9 +79,9 @@ export default {
endTime: getSecond(this.timeFilter.endTime),
cycle: 0
}
if (this.tabIndex === 0) {
if (parseFloat(this.tabIndex) === 0) {
this.side = 'client'
} else if (this.tabIndex === 1) {
} else if (parseFloat(this.tabIndex) === 1) {
this.side = 'server'
}
if (condition && (typeof condition !== 'object') && type) {