From d8944c4764c3fc4b7baf6b5c1586cf17c88b0bb1 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 23 三月 2022 22:38:20 +0800
Subject: [PATCH] 修改ztree复选框默认为父子联动

---
 src/pages/shuohuangMonitorAnalyze/components/charts/line.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue b/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue
index ba22ac6..ef984b6 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue
@@ -9,14 +9,14 @@
       type: Object
     }
   },
-  mounted () {
+  mounted() {
     this.initLineChart();
   },
   methods: {
-    initLineChart () {
+    initLineChart() {
       this.$nextTick(() => {
         let dom = this.$echarts.init(this.$refs['lineChart']);
-        dom.setOption(this.options);
+        dom && dom.setOption(this.options);
       })
     }
   }

--
Gitblit v1.8.0