fix: 修复npm部分下钻参数处理问题

This commit is contained in:
changcode
2022-09-30 17:03:12 +08:00
parent 834eef9c52
commit 2e96db67d5
2 changed files with 6 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ export default {
// const conditionStr = this.$route.query.queryCondition ? this.$route.query.queryCondition : ''
let condition = ''
const type = this.dimensionType
if (this.queryCondition.indexOf('OR') > -1 && type !== 'protocolPort') {
if (this.queryCondition.indexOf(' OR ') > -1) {
condition = this.queryCondition.split(/["|'](.*?)["|']/)
} else {
condition = this.queryCondition