fix: 修复 npm 下钻总流量折线图参数处理问题

This commit is contained in:
changcode
2022-09-30 16:31:11 +08:00
parent a1c26c9179
commit 2d6787a621

View File

@@ -135,15 +135,16 @@ export default {
if (!val) {
val = this.metricFilter
}
debugger
// const conditionStr = this.$route.query.queryCondition ? this.$route.query.queryCondition : ''
let condition = ''
if (this.queryCondition.indexOf('OR') > -1) {
const type = this.dimensionType
if (this.queryCondition.indexOf('OR') > -1 && type !== 'protocolPort') {
condition = this.queryCondition.split(/["|'](.*?)["|']/)
} else {
condition = this.queryCondition
}
// const type = this.$store.getters.getDimensionType
const type = this.dimensionType
if (this.chartData.id === 24) {
this.side = 'client'
} else if (this.chartData.id === 29) {