Invalid prop: type check failed for prop "action". Expected String with value "undefined", got Undefined found in
时间: 2023-10-16 17:06:02 浏览: 125
根据引用中的描述,当使用el-upload组件进行文件上传时,需要在action属性中写上有效的字符串值。引用中的代码示例显示,变量cinemaInfo被期望是一个对象,但是最初直接将res.data赋值给该变量,而res.data实际上是一个数组。同样地,引用也描述了一个类似的问题,变量期望接收到一个对象,但实际上赋值给变量的是一个数组。根据这些引用内容,可以推断出在问题中出现的错误是因为action属性的值为undefined,而期望的值是一个有效的字符串。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Invalid prop: type check failed for prop “action“. Expected String with value “undefined](https://blog.csdn.net/m0_37631395/article/details/124453822)[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: 50%"]
- *2* *3* [解决Vue报错解决Invalid prop: type check failed for prop “model“. Expected Object, got Array的问题](https://blog.csdn.net/weixin_51641169/article/details/126289389)[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: 50%"]
[ .reference_list ]
阅读全文