summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nezha-fronted/src/components/chart/panelChart.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue
index f185c5010..df54f5951 100644
--- a/nezha-fronted/src/components/chart/panelChart.vue
+++ b/nezha-fronted/src/components/chart/panelChart.vue
@@ -469,7 +469,14 @@ export default {
case 'logs': {
this.chartData = []
elements.forEach((element, index) => {
- this.chartData.push(this.dataJson[this.chartInfo.id + '_' + index].data.result)
+ const data = this.dataJson[this.chartInfo.id + '_' + index].data.result.map(item => {
+ this.allDataLength++
+ return {
+ ...item,
+ elements: element
+ }
+ })
+ this.chartData.push(data)
})
break
}