[Vue warn]: Avoid using non-primitive value as key, use string/number value instead

错误如下:

[Vue warn]: Avoid using non-primitive value as key, use string/number value instead.

found in

--->  at src/components/dataDivComponent.vue
        at src/views/predict.vue
          at src/App.vue
           
...

Avoid using non-primitive value as key
避免使用非原始值作为 Key

代码中使用 item 作为了 key 导致,此时 item 是一个对象

key 使用字符串或数字,改成下面的样子就好了

你可能感兴趣的:([Vue warn]: Avoid using non-primitive value as key, use string/number value instead)