Duplicate keys detected: ''. This may cause an update error. found in

问题遇到的现象和发生背景

开发过程中

问题相关代码,请勿粘贴截图
###### 运行结果及报错内容 ---> at pages/Order.vue 16:12:34.112 [Vue warn]: Duplicate keys detected: ''. This may cause an update error.

found in

---> at pages/Order.vue
16:12:34.122 [Vue warn]: Duplicate keys detected: ''. This may cause an update error.

found in

我的解答思路和尝试过的方法

只有一个for循环

我想要达到的结果

v-for="(item,index) in arr" 后面加个:key="index"

可能有2个一样的key值

看一下key

你是不是少了个冒号,:key才是动态绑定能用变量的,直接key是字符串你怎么写都会报哪个错

解决了吗?