From d0f07e25103d7c7845c3b9534e8c66b5905447c0 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 04 六月 2025 23:27:55 +0800
Subject: [PATCH] 动态溯源(待完成)

---
 src/components/chart/RealTimeLineChart.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/components/chart/RealTimeLineChart.vue b/src/components/chart/RealTimeLineChart.vue
index 562b60f..7a2ea1d 100644
--- a/src/components/chart/RealTimeLineChart.vue
+++ b/src/components/chart/RealTimeLineChart.vue
@@ -44,6 +44,7 @@
       }
       if (this.lineChart) {
         this.lineChart.setOption(this.option, { notMerge: true });
+        // console.log('鎶樼嚎鍥剧敓鎴愶細绔嬪嵆');
       } else {
         this.onChartCreated = () => {
           this.lineChart.setOption(this.option, { notMerge: true });
@@ -53,9 +54,13 @@
   },
   mounted() {
     this.lineChart = echarts.init(this.$refs.lineChart);
-    if (typeof this.onChartCreated === 'function') {
-      this.onChartCreated();
-    }
+    this.onChartCreated();
+    // setTimeout(() => {
+    //   if (typeof this.onChartCreated === 'function') {
+    //     this.onChartCreated();
+    //     // console.log('鎶樼嚎鍥剧敓鎴愶細婊炲悗');
+    //   }
+    // }, 500);
   }
 };
 </script>
@@ -66,7 +71,7 @@
   justify-content: center;
 }
 .line-chart {
-  width: 300px;
+  width: 318px;
   height: 140px;
   /* border-bottom: 1px solid rgba(255, 255, 255, 0.329); */
 }

--
Gitblit v1.9.3