[Vue warn]: Duplicate keys detected: x. This may cause an update error

后端 未结 6 537
我在风中等你
我在风中等你 2021-02-06 22:02

I keep getting an error when I add an item to the array which has duplicate id.

i.e.

active_widgets:Array[4]
0:Object
    id:1
    name:\"Text Blocks\"
         


        
6条回答
  •  面向向阳花
    2021-02-06 22:52

    Same key for different v-for loops causing this warning.you can avoid this using different key for different v-for loops.

    //here A,B's sample characters.you can take any character in that place

提交回复
热议问题