From 3b43ee5ead5f625d532150afceddcf1b481b823d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 29 五月 2020 00:09:36 +0800
Subject: [PATCH] 2020-05-29

---
 src/templates/sharecomponent/chartcomponent/chartcompile/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/chartcomponent/chartcompile/index.jsx b/src/templates/sharecomponent/chartcomponent/chartcompile/index.jsx
index afd1e2e..87ead05 100644
--- a/src/templates/sharecomponent/chartcomponent/chartcompile/index.jsx
+++ b/src/templates/sharecomponent/chartcomponent/chartcompile/index.jsx
@@ -412,7 +412,7 @@
         if (!err) {
           let _plot = {...plot, ...values}
 
-          if (_plot.enabled !== 'true') {
+          if (_plot.enabled !== 'true' || _plot.customs.map(_cell => _cell.field).sort().toString() !== _plot.Yaxis.sort().toString()) {
             _plot.enabled = 'false'
             _plot.customs = _plot.Yaxis.map((field, i) => {
               let _item = {field: field}
@@ -426,6 +426,7 @@
           }
           
           this.setState({
+            enabled: _plot.enabled || 'false',
             plot: _plot,
             view: _view
           })

--
Gitblit v1.8.0