vue.js:634 [Vue warn]: Duplicate keys detected: ‘1‘. This may cause an update error.问题所在

vue.js:634 [Vue warn]: Duplicate keys detected: ‘1’. This may cause an update error.

上面报错信息是由于使用v-for时, key值出现一样的, 上面报错的'1'就是重复的key值

  • 检查一下代码里面使用v-for时使用的key值

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/lxb_wyf/article/details/111221867