eChart 引入 在main.js中 import * as echarts from ‘echarts’ Vue.prototype.$echarts = echarts 在组件中 <template> <div class="money"> source <div class="con"> <div class="myChart" ref="mychart"></div> </div> </div> </template> <script>