Vue 出现Avoid using non-primitive value as key, use string/number value instead.和Duplicate keys detect

VUE出现Avoid using non-primitive value as key, use string/number value instead和Duplicate keys detected: '[object Object]'. This may cause an update error.

这种错误经常会发生在item遍历时,解决方法 加上 :key="item.id"


你可能感兴趣的:(vue)