From 4a89fa128f731f60392dd3bb92c26112a8947619 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 16 May 2019 17:05:11 +0800 Subject: [PATCH] :up: upgrade bizcharts version to fix forceFit of null close #4107 ref alibaba/BizCharts#819 close #4195 --- package.json | 2 +- src/pages/Dashboard/Analysis.js | 4 ---- src/pages/Dashboard/Workplace.js | 7 ------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/package.json b/package.json index d31018c2..1ccbf0ec 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 82700135..e76271ac 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 d71b122a..3021c2ff 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 }, -- GitLab