会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
如意酱
亲测可用,随拿随用的积累向博客
博客园
首页
新随笔
联系
管理
订阅
2023年3月31日
报错:想用echarts但是报错Error in mounted hook: “TypeError: Cannot read properties of undefined (reading ‘init‘)“
摘要: 解决方案: 1.版本问题,main.js文件中, 5.0以下版本写:import echarts from 'echarts ' 5.0以上版本写: import * as echarts from ‘echarts 都要写:Vue.prototype.$echarts = echarts 2.删掉
阅读全文
posted @ 2023-03-31 09:06 如意酱
阅读(191)
评论(0)
推荐(0)
编辑
公告