App.vue:28[Vue warn]: Error in mounted hook: "TypeError: Cannot read properties of undefined (reading 'init')" 有时候会报这个错误,这说明你引入的方式可能不太正确,修改引入的方式
import echarts from 'echarts'修改为import * as echarts from 'echarts'
04-16
3200
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-17
2617
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交