|
@@ -36,7 +36,8 @@ class Pie extends Component {
|
|
|
@Debounce(200)
|
|
@Debounce(200)
|
|
|
resize = () => {
|
|
resize = () => {
|
|
|
const { hasLegend } = this.props;
|
|
const { hasLegend } = this.props;
|
|
|
- if (!hasLegend || !this.node) {
|
|
|
|
|
|
|
+ if (!hasLegend || !this.root) {
|
|
|
|
|
+ window.removeEventListener('resize', this.resize);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
// antd xs size
|
|
// antd xs size
|