vue报错:Invalid prop: type check failed for prop “total”. Expected Number with value 0, got String wit

翻译:vue报错:无效的道具:类型检查失败的道具“总”。值为0的期望值,得到字符串

期望得到的是Number类型,结果给了它个字符串,检查一下数据设置,修改一下就可以了

vue报错:Invalid prop: type check failed for prop "total". Expected Number with value 0, got String wit
vue报错:Invalid prop: type check failed for prop "total". Expected Number with value 0, got String wit
如图所示,total应该需要传入的是Number类型,我一开始把cpage写成了字符串,修改为数值就可以了。

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-12-27
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案