diff --git a/package.json b/package.json index d31018c2daa039f5c4d845bd4c8fc8e91f2da205..1ccbf0ec873f33dbcd8fdbad40d865e6e37dce88 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "dependencies": { "@antv/data-set": "^0.10.1", "antd": "^3.16.1", - "bizcharts": "3.5.2-beta.1", + "bizcharts": "^3.5.2", "bizcharts-plugin-slider": "^2.1.1-beta.1", "classnames": "^2.2.6", "dva": "^2.4.1", diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index 827001353b2f2b6db7ed5addbd520a308756acea..e76271ac72cb8cc3d87154c3cd214ebd04d9003c 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -33,10 +33,6 @@ class Analysis extends Component { } componentWillUnmount() { - const { dispatch } = this.props; - dispatch({ - type: 'chart/clear', - }); cancelAnimationFrame(this.reqRef); } diff --git a/src/pages/Dashboard/Workplace.js b/src/pages/Dashboard/Workplace.js index d71b122a74b41147590b53bb566efaeed36d3f2a..3021c2ff08d55a27abad664fc9c3331654107c14 100644 --- a/src/pages/Dashboard/Workplace.js +++ b/src/pages/Dashboard/Workplace.js @@ -62,13 +62,6 @@ class Workplace extends PureComponent { }); } - componentWillUnmount() { - const { dispatch } = this.props; - dispatch({ - type: 'chart/clear', - }); - } - renderActivities() { const { activities: { list },