1、安装依赖 npm install echarts 2、在main.js文件中引入echarts import echarts from 'echarts' Vue.prototype.$echarts = echarts 然后,在组件中按照ECharts的使用步骤(五部曲)使用相关图表即可