heyujie
2022-02-14 439d4b5ff70255d92519e9af9b0438efe3b6f57f
src/pages/shuohuangMonitorAnalyze/components/charts/line.vue
@@ -1,5 +1,5 @@
<template>
  <div ref="lineChart"></div>
  <div ref="lineChart" style="width:100%;height:100%"></div>
</template>
<script>
@@ -9,14 +9,14 @@
      type: Object
    }
  },
  mounted(){
  mounted() {
    this.initLineChart();
  },
  methods:{
    initLineChart(){
      this.$$nextTick(()=>{
  methods: {
    initLineChart() {
      this.$nextTick(() => {
        let dom = this.$echarts.init(this.$refs['lineChart']);
        dom.setOption(this.options);
        dom && dom.setOption(this.options);
      })
    }
  }