fix: 修改alertMessage 查看chart 多encodeURI一次的问题

This commit is contained in:
zhangyu
2022-03-09 10:16:56 +08:00
parent 712ceb94c7
commit 384154c99f
2 changed files with 2 additions and 2 deletions

View File

@@ -610,7 +610,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(/\"/g, '\'').replace(/\r|\n+/g, '')
chartInfo.elements[0].filter = encodeURIComponent(decodeURIComponent(this.promQueryParamLabels(this.currentMsg.labels)))
chartInfo.unit = this.currentMsg.unit
this.showFullscreen(true, chartInfo)