From 92108e6c93de657838bbd766a9eb4f27d85e1c2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 五月 2020 16:41:28 +0800 Subject: [PATCH] 2020-05-05 --- src/templates/sharecomponent/chartgroupcomponent/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx index eef7f36..1ed99b7 100644 --- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx +++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx @@ -190,6 +190,14 @@ this.props.updatechartgroup(config, id) } + /** + * @description 缁勪欢閿�姣侊紝娓呴櫎state鏇存柊 + */ + componentWillUnmount () { + this.setState = () => { + return + } + } render() { const { config } = this.props @@ -208,7 +216,7 @@ handleMenu={this.handleChart} deleteMenu={this.deletechart} /> : null} - {/* 鍚堝苟鍒楃紪杈� */} + {/* 鍥捐〃淇℃伅缂栬緫 */} <Modal title={modaltype === 'addChart' ? '鍥捐〃-娣诲姞' : '鍥炬爣-缂栬緫'} visible={modaltype === 'addChart' || modaltype === 'editChart'} -- Gitblit v1.8.0