fix:修改预览时报错的问题
This commit is contained in:
@@ -551,7 +551,7 @@
|
||||
this.noData=false;
|
||||
}
|
||||
let _chartItem = JSON.parse(JSON.stringify(chartItem));
|
||||
if (chartItem.from == $CONSTANTS.fromRoute.endpoint) {
|
||||
if (chartItem.from == this.$CONSTANTS.fromRoute.endpoint) {
|
||||
_chartItem.type = "line";
|
||||
}
|
||||
this.setData(_chartItem, series, legend);
|
||||
@@ -1105,7 +1105,7 @@
|
||||
this.getChartData();
|
||||
} else if (chartType === 'line' || chartType === 'bar' || chartType === 'stackArea' || chartType === 4 || this.chart.from == 'endpoint') {
|
||||
this.echartModalStore.clear();
|
||||
if (this.chart.from != $CONSTANTS.fromRoute.endpoint) {
|
||||
if (this.chart.from != this.$CONSTANTS.fromRoute.endpoint) {
|
||||
this.showLegend = false;
|
||||
}
|
||||
this.$refs.loadingPreview.startLoading();
|
||||
|
||||
Reference in New Issue
Block a user