Browse Source

解决echarts和vue存在的冲突问题

main
panzhenglong 3 years ago
parent
commit
cd5fc3e6c0
  1. 3
      web/src/view/dashboard/dashbordCharts/echartsLine.vue

3
web/src/view/dashboard/dashbordCharts/echartsLine.vue

@ -11,6 +11,7 @@
</template>
<script>
import echarts from 'echarts'
import { toRaw } from 'vue'
import 'echarts/theme/macarons'
var dataAxis = []
@ -64,7 +65,7 @@ export default {
this.setOptions()
},
setOptions() {
this.chart.setOption({
toRaw(this.chart).setOption({
grid: {
left: '40',
right: '20',

Loading…
Cancel
Save