src/views/home/data-face/index.vue
@@ -28,8 +28,8 @@ import * as echarts from 'echarts'; import {car, face} from "../../../api/platform/home"; var chartDom = document.getElementById('main'); var myChart = echarts.init(chartDom); var myChart = null; var option; let observer = null; export default { @@ -276,6 +276,7 @@ const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1); this.date = year + '-' + month; this.params.date = this.date; myChart = echarts.init(this.$refs.chartContent); this.getChart(); this.observe(); },