fix:修改 告警类型为日志的查看不了的问题

This commit is contained in:
zhangyu
2022-04-01 16:21:47 +08:00
parent 7db7e39a47
commit 6b52404d47
2 changed files with 2 additions and 2 deletions

View File

@@ -633,7 +633,7 @@ export default {
color: '#d64f40'
}]
}
chartInfo.elements[0].expression = encodeURIComponent(this.currentMsg.alertRule.expr.replace(/\"/g, '\'').replace(/\r|\n+/g, ''))
chartInfo.elements[0].expression = this.currentMsg.alertRule.expr.replace(/\r|\n+/g, '')
chartInfo.elements[0].filter = encodeURIComponent(decodeURIComponent(this.promQueryParamLabels(this.currentMsg.labels)))
chartInfo.unit = this.currentMsg.alertRule.unit
this.showFullscreen(true, chartInfo)