Invalid prop: type check failed for prop "src"
时间: 2023-09-25 15:15:10 浏览: 87
这个错误是由于传递给组件的属性"src"的类型不匹配导致的。根据引用和引用,可以看出,该属性的值应为字符串类型。而根据引用,可能是因为从localStorage中获取的值被转换成了字符串类型,导致再次赋值给"src"属性时出现类型冲突。为了解决这个问题,你可以确认传递给组件的"src"属性的值是一个字符串类型,并且根据需要进行类型转换或处理。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Invalid prop: type check failed for prop “src“. Expected String with value “[object Object]](https://blog.csdn.net/weixin_45890764/article/details/120311290)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [[Vue warn]: Invalid prop: type check failed for prop “currentPage“. Expected String with value “1...](https://blog.csdn.net/qq_44267691/article/details/127247351)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文