Invalid prop: type check failed for prop "value". Expected Array, got String with value ""
时间: 2023-08-22 10:12:40 浏览: 170
这个错误是由于属性"value"的类型检查失败导致的。根据引用\[1\],这个属性的预期类型是数组,但实际上传入的是一个字符串类型的值。根据引用\[2\],解决这个问题的方法是将v-model中的数据类型改为正确的类型,即将字符串类型改为数组类型。另外,如果使用了select多选和远程搜索功能,还需要参考官方示例中的引用\[3\],确保el-option的key具有唯一性,并且如果想保留搜索结果,可以添加reserve-keyword属性。
#### 引用[.reference_title]
- *1* *3* [Invalid prop: type check failed for prop “value”. Expected String, Number, got Array](https://blog.csdn.net/gaoyu007/article/details/118898535)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [[Vue warn]: Invalid prop: type check failed for prop “value“. Expected](https://blog.csdn.net/m0_51152244/article/details/126033563)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文