传错了对象

This commit is contained in:
2betop 2020-03-05 18:36:58 +08:00
parent 96cfb18c9f
commit b4c98198ca
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,8 @@ export class Chart extends React.Component<ChartProps> {
config = new Function('return ' + config)();
}
try {
onDataFilter && (config = onDataFilter(config, this.echarts) || config);
onDataFilter &&
(config = onDataFilter(config, (window as any).echarts) || config);
} catch (e) {
console.warn(e);
}