[Vue warn]: Invalid prop: type check failed for prop “router”. Expected Boolean, got String with val
[Vue warn]:无效的属性:属性“路由器”的类型检查失败。应为布尔值,获取值为“true”的字符串。
很明显 "router"这个属性希望得到类型是布尔类型,结果得到了字符串。
解决方法就是在 “router”.这个属性前面加上“ : ”即可
相关文章
- 10-07[Vue warn]: Invalid prop: type check failed for prop "data". Expected.....警告问题
- 10-07[Vue warn]: Invalid prop: type check failed for prop “src“. Expected String, Object, got Module
- 10-07[Vue warn]: Invalid prop: type check failed for prop "data". Expected.....警告问题
- 10-07EasyGBS控制台报错Invalid prop: type check failed for prop “linkinfor“. Expected Object, got String
- 10-07[Vue warn]: Invalid prop: type check failed for prop “image“. Expected String, got Null.
- 10-07element-ui 组件报错: Vue warn]: Invalid prop: type check failed for prop “min“. Expected Number with
- 10-07Invalid prop: type check failed for prop "showCheckbox". Expected Boolean, got String.
- 10-07[Vue warn]: Invalid prop: type check failed for prop “router“. Expected Boolean, got String with val
- 10-07Invalid prop: type check failed for prop “span“. Expected Number with value 8, got String with value
- 10-07Vue报错 type check failed for prop “xxx“. Expected String with value “xx“,got Number with value ‘xx‘