From 8b40f521b99ba9e5af7bb38587e4a4a4a0599193 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 02 一月 2025 09:41:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/model/pre/item/MmPredictItemChart.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/model/pre/item/MmPredictItemChart.vue b/src/views/model/pre/item/MmPredictItemChart.vue index 2670907..14afaed 100644 --- a/src/views/model/pre/item/MmPredictItemChart.vue +++ b/src/views/model/pre/item/MmPredictItemChart.vue @@ -79,6 +79,8 @@ dataForm.value.id = row.id; dataForm.value.itemName = row.itemname; if (row.id) { + myChart = echarts.init(chartDomPre.value); + myChart.clear() getDataList(); } } @@ -160,7 +162,6 @@ }) } - myChart = echarts.init(chartDomPre.value); const option = { title: { text: dataForm.value.itemName, @@ -208,7 +209,6 @@ ], series: seriesData, }; - myChart.clear() myChart.setOption(option); } catch (error) { console.error(error) -- Gitblit v1.9.3