When vue modifies one piece of data, the other changes?

clipboard.png
Why is it that when the third piece of data is added, the second piece of data is changed to be the same as Article 3? I follow the vue+elementUI routine

Sep.10,2021

depends on your logic code, so we can't solve the problem for you. It is estimated that you have some kind of logical error.


did not create a new object


reference passed value


check each piece of data to generate DOM bound key, to make sure each item is different. (most of the problems can be updated using third-party complex components such as uuid), (encountered many times before using iview).


it is possible to directly manipulate the array (the reason for passing values by reference)

Menu