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



  {{rowsName[key3]}}
  
    
  

上面代码会出现 [Vue warn]: Duplicate keys detected: '1'. This may cause an update error. 错误,key 属性冲突导致

Duplicate keys detected: '1'. This may cause an update error_第1张图片

解决方案

1.删除整行代码
2.将 修改为

你可能感兴趣的:(Duplicate keys detected: '1'. This may cause an update error)