From 7facbed508592e842f9bca085cf0ffaebcbfc571 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 12 十一月 2020 19:22:37 +0800
Subject: [PATCH] 2020-11-12

---
 src/tabviews/custom/components/chart/antv-bar-line/index.jsx |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
index e249816..6347ffb 100644
--- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
+++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -45,7 +45,7 @@
   }
 
   UNSAFE_componentWillMount () {
-    const { config, data } = this.props
+    const { config, data, initdata } = this.props
     let _config = fromJS(config).toJS()
 
     let _data = null
@@ -54,6 +54,9 @@
     if (config.setting.sync === 'true' && data) {
       _data = data[config.dataName] || []
       _sync = false
+    } else if (config.setting.sync === 'true' && initdata) {
+      _data = initdata || []
+      _sync = false
     }
 
     let vFields = []

--
Gitblit v1.8.0