[Vue warn]: Invalid prop: type check failed for prop "total". Expected Number with value NaN, got Object
时间: 2023-10-16 08:06:41 浏览: 165
这个错误是由于在使用elementUI框架的分页组件时,total属性的类型检查失败导致的。根据引用和引用可以得知,total属性期望的数据类型是Number,但是实际传入的值为NaN,即没有被定义。解决这个问题的方法是给total赋予一个初始值。通过给total赋初始值,就可以避免这个错误的发生。另外,根据引用提供的信息,前端采用的是Vue框架,后端采用的是Golang语言和Gin框架。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [[Vue warn]: Invalid prop: type check failed for prop “total“. Expected Number with value NaN](https://blog.csdn.net/weixin_48568302/article/details/124150606)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [[Vue warn]: Invalid prop: type check failed for prop “pageSize“. Expected Number with value NaN](https://blog.csdn.net/aabb12345687/article/details/131714488)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [go语言恶意代码检测系统-对接前端可视化与算法检测部分](https://download.csdn.net/download/liufang_imei/88222624)[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^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文