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

Loading…
Cancel
Save