diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index 8ad1370ba..7a4b8fd00 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -196,7 +196,7 @@ export default { // if (isChartPie(this.chartInfo.type)) { // query += `&statistics=${this.chartInfo.param.statistics || 'last'}` // } - query += `&query=${element.expression}` + query += `&query=${encodeURIComponent(element.expression)}` return this.$get(query) }) if (this.multipleTime) { @@ -217,7 +217,7 @@ export default { // if (isChartPie(this.chartInfo.type)) { // query += `&statistics=${this.chartInfo.param.statistics || 'last'}` // } - query += `&query=${element.expression}` + query += `&query=${encodeURIComponent(element.expression)}` return this.$get(query) }) requests = requests.concat(multipleRequests)