[Vue warn]: Duplicate keys detected: ‘0’. This may cause an update error.
刚开始看到这个问题我还有点奇怪,因为只在for循环哪里用到了key属性,后面查了下发现是同级v-for的key值一样造成报错。
控制台报错:
[Vue warn]: Duplicate keys detected: '0'. This may cause an update error.
报错代码:
[Vue warn]: Duplicate keys detected: '0'. This may cause an update error.
修改后代码
[Vue warn]: Duplicate keys detected: '0'. This may cause an update error.
补充:如果有大神路过知道是什么原理请在评论区指点一下,谢谢!

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-12-31
  • 2021-06-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-09
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案