1. Introduce the echart plugin
npm install echarts -S
2. Import in the file
// 引入echarts
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
3. Initialize the chart in the mounted life cycle function
4. Frequently Asked Questions