diff --git a/src/components/ECharts/index.vue b/src/components/ECharts/index.vue index 83b0553..13a20ab 100644 --- a/src/components/ECharts/index.vue +++ b/src/components/ECharts/index.vue @@ -104,6 +104,7 @@ export default { stack = null, ...rest } = options || this.options; + console.log(1111, stack); this.chartInstance.setOption({ color: ["#409bc7", "#a5edeb"], xAxis: { diff --git a/src/views/index.vue b/src/views/index.vue index a56cefd..d1bfc8e 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -23,7 +23,7 @@ range-separator="|" start-placeholder="开始日期" end-placeholder="结束日期" - @change="changeTime" + @change="changeTime()" > @@ -227,6 +227,7 @@ export default { () => Math.floor(Math.random() * 100) + 1 ), }; + console.log(222, this.stack); this.chartOptions = { xData, yData,