diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 42c4c3612..39f9d0e96 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -1580,7 +1580,9 @@ } }, getAlertListChartData:function(chartInfo,filterType){ - this.$set(chartInfo, "param", {endpointId: this.additionalInfo.id}); + if(this.additionalInfo){ + this.$set(chartInfo, "param", {endpointId: this.additionalInfo.id}); + } this.$refs['editChart'+chartInfo.id][0].getAlertList(filterType); }, getAlertRuleChartData(chartInfo) { diff --git a/nezha-fronted/src/components/page/dashboard/explore/editor.vue b/nezha-fronted/src/components/page/dashboard/explore/editor.vue index 5af1aabe7..6be59a4f2 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/editor.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/editor.vue @@ -4,9 +4,9 @@