首页 前端知识 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘type‘)

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘type‘)

2024-02-28 11:02:10 前端知识 前端哥 253 451 我要收藏

现象:echarts报错

 解决办法:

在实例化echart时,将其指定为非响应式的

import { markRaw } from 'vue'
复制
that.myChart = markRaw(echarts.init(document.getElementById('main')));
复制

转载请注明出处或者链接地址:https://www.qianduange.cn//article/2898.html
标签
评论
还可以输入200
共0条数据,当前/页
会员中心 联系我 留言建议 回顶部
复制成功!