Web Exception the data property is already declared Property or methond is not defined on the

最近有个任务,迭代了一个星期,还没结束需求就变了,但是一个小的功能模块已经几百行代码了,所以想着应该抽取出来封装一下,那么抽取的遇到了一些小问题记录一下,是那种类似笔下误的错误

the data property is already declared as a prop Use Pro default value instead

封装组件 props 中的属性 和 data 中的属性重复了

 

Property or methond is not defined on the instance but referenced during render,Make sure that this property is reactive either in the data option or for class-based components by initializing
 the property 

当提示你所有方法都没有定义时 但你明明定义了,那么去看一看 methods 这个单词拼写是否正确

 

invalid prop type check failed for prop model ,Expected Object got Array found in xxxx

问题是在你的对应组件上  model 期望的值类型是Object 但是获取到的是Array 问题就去排查啊吧

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值