Iconfont使用报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop “hot”. Expec
错误样子
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
代码如下:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
错误提示是说期望一个Array类型,获得的却是一个Object类型,而后我把期望数据类型改了
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
结果坑爹的发现他又继续报错,如下如下所示:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
分分钟是觉得他在逗我玩。最后我就想把他变成一个不限定的看看会不会不报错:
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec
结果果然没有报错了,切程序运行正常,然后我在里面加入Array,也没有出现报错
Vue报错踩坑:vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "hot". Expec

相关文章:

  • 2021-07-19
  • 2022-01-12
  • 2021-10-12
  • 2021-07-13
  • 2021-10-24
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-11-09
  • 2021-04-19
相关资源
相似解决方案