diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 7ad7f7d1a..dfbef4404 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -1330,9 +1330,9 @@ let chartType = duplicateChart.type; if(chartType!=='url'){ this.getChartDataForSearch(duplicateChart,chartNextIndex); - }else { - this.setChartSize(duplicateChart.span, chartNextIndex); // 设置该图表宽度 } + this.setChartSize(duplicateChart, chartNextIndex); // 设置该图表宽度 + }); } },