在vue中引入echarts ,应用报错, “TypeError Cannot read properties of undefined (reading ‘init‘)“

阅读 46

2022-02-23

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

解决方案:

import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

结果:

精彩评论(0)

0 0 举报