0
点赞
收藏
分享

微信扫一扫

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

无聊到学习 2022-02-23 阅读 46
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

解决方案:

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

结果:

举报

相关推荐

0 条评论