From 06e34313373fbd3ebed39b8345fcd40ff4f24b83 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 11 Mar 2022 17:27:26 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1673=20=20=20=20fix=EF=BC=9A=20logs?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=AF=BC=E5=87=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/chartLog.vue | 2 +- nezha-fronted/src/components/chart/panelChart.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartLog.vue b/nezha-fronted/src/components/chart/chart/chartLog.vue index 6002e47b9..b1d35d644 100644 --- a/nezha-fronted/src/components/chart/chart/chartLog.vue +++ b/nezha-fronted/src/components/chart/chart/chartLog.vue @@ -216,7 +216,7 @@ export default { const limit = this.operations.limit const descending = this.operations.descending const params = { - logql: this.expressions, + logql: this.chartInfo.elements.map(item => item.expression), start: this.$stringTimeParseToUnix(this.filterTime[0]), end: this.$stringTimeParseToUnix(this.filterTime[1]), direction: descending ? 'backward' : 'forward', diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index 2fb8152c6..16ba3e590 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -196,10 +196,10 @@ export default { query += '&format=1' if (!params || params.descending) { this.chartInfo.descending = true - query += '&direction=forward' + query += '&direction=backward' } else { this.chartInfo.descending = false - query += '&direction=backward' + query += '&direction=forward' } } // if (isChartPie(this.chartInfo.type)) {