Duplicate keys detected: ‘[object Object]’. This may cause an update error.

910 阅读1分钟

Vue给报的错:

Duplicate keys detected: ‘[object Object]’. This may cause an update error.

翻译过来就是

检测到重复键:“[对象对象]”。这可能会导致更新错误。

​编辑

把上面的v-for  修改成下面 这种格式就莫名其妙的好了

​编辑

 

写v-for 的时候 还是写 

         v-for="(col, index) in columns"         :key="index"

这种格式就不会报错

 和下面的博客一样 我也一样 奇奇怪怪的就好了(28条消息) Duplicate keys detected: '[object Object]'. This may cause an update error.---Vue报错_Ryan_black的博客-CSDN博客