diff --git a/src/components/Charts/Pie/index.js b/src/components/Charts/Pie/index.js index 658e7939719bf1fbb15506db619be643e76b38d9..8a0f3023b89a9e83460e1b2830ce8e63cd3d9490 100644 --- a/src/components/Charts/Pie/index.js +++ b/src/components/Charts/Pie/index.js @@ -36,7 +36,8 @@ class Pie extends Component { @Debounce(200) resize = () => { const { hasLegend } = this.props; - if (!hasLegend || !this.node) { + if (!hasLegend || !this.root) { + window.removeEventListener('resize', this.resize); return; } // antd xs size