|
@@ -14,7 +14,7 @@ class ThumbnailEcharts extends React.Component {
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
|
const { dispatch, option } = this.props;
|
|
const { dispatch, option } = this.props;
|
|
|
let base64;
|
|
let base64;
|
|
|
- if(!option || ((!option.series || option.series.length === 0) && (!option.baseOption || !option.baseOption.series || option.baseOption.series.length === 0))) {
|
|
|
|
|
|
|
+ if(!option || ((!option.series || option.series.length === 0 || !option.series[0].data || option.series[0].data.length === 0) && (!option.baseOption || !option.baseOption.series || option.baseOption.series.length === 0 || !option.baseOption.series[0].data || option.baseOption.series[0].data.length === 0))) {
|
|
|
base64 = '';
|
|
base64 = '';
|
|
|
}else {
|
|
}else {
|
|
|
base64 = this.echartsRef.getEchartsInstance().getDataURL({
|
|
base64 = this.echartsRef.getEchartsInstance().getDataURL({
|