Vue - 安装引入 WangEditor V5 富文本编辑器后控制台报错(Nuxt.js 项目同样适用):$attrs is readonly 、 $listeners is readonly

前言

注意:该问题在很多 UI 组件库框架(比 ElementUI、iView等)、插件上都可能会出现! 网上关于 $attrs is readonly 、 $listeners is readonly 的问题太多太多了,几乎全是无效的。

根据官方或网上的教程,成功引入 WangEditor 富文本编辑器后,发现控制台一片报红。

这个时候,页面确实出来了富文本编辑器,功能也正常使用,


但打开控制台一看,一串连环报错,包括但不限于以下 3 个错误:

  1. $attrs is readonly.
  2. $listeners is readonly.
  3. Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “value”

在这里插入图片描述






</

猜你喜欢

转载自blog.csdn.net/weixin_44198965/article/details/127009560