Invalid prop: type check failed for prop "data". Expected Array, got String with value "无数据".
时间: 2023-08-26 13:17:04 浏览: 119
问题:Invalid prop: type check failed for prop "data". Expected Array, got String with value "无数据".
回答: 这个错误是因为你在期望获取数组的地方,却传递了一个字符串。根据你提供的代码,可以看到你的多选框的值应该是一个数组,但是你传递了一个字符串"无数据"。所以,你需要检查你的代码,确保在传递多选框的值时使用正确的数据类型,即一个数组。<span class="em">1</span>
#### 引用[.reference_title]
- *1* [vue报错Invalid prop: type check failed for prop “value“. Expected Array, got String with value ...](https://blog.csdn.net/m0_51614469/article/details/124685205)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文