From ae170a9d58b4f91a225eada1dc83ed4a116b8d50 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 25 八月 2024 00:57:37 +0800 Subject: [PATCH] 2024-08-25 --- src/templates/sharecomponent/chartgroupcomponent/index.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/chartgroupcomponent/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/index.jsx index 4c90686..2c18248 100644 --- a/src/templates/sharecomponent/chartgroupcomponent/index.jsx +++ b/src/templates/sharecomponent/chartgroupcomponent/index.jsx @@ -203,13 +203,13 @@ */ deletechart = (plot) => { const { config } = this.props - let _this = this + let that = this confirm({ content: `纭畾鍒犻櫎 ${plot.title} 锛焋, onOk() { - let _chartlist = fromJS(_this.state.chartlist).toJS() - let _chartview = _this.state.chartview + let _chartlist = fromJS(that.state.chartlist).toJS() + let _chartview = that.state.chartview _chartlist = _chartlist.filter(item => item.uuid !== plot.uuid) @@ -217,11 +217,11 @@ _chartview = _chartlist[0].uuid } - _this.setState({ + that.setState({ chartlist: _chartlist, chartview: _chartview }) - _this.props.updatechartgroup({...config, charts: _chartlist}, _chartview) + that.props.updatechartgroup({...config, charts: _chartlist}, _chartview) }, onCancel() {} }) -- Gitblit v1.8.0