The problem of failure of array splice,push, operation according to subscript

vue framework. Click New to add a set of

newInterface: {
    interfaceVal: "",
    checked: true,
    CPUmax: "",
    maxTimes: ""
},

Click push (newInterface)
clipboard.png


pushpush

clipboard.png
in the array, and all the switches change
I don"t know if my problem has been described clearly,-_-| |

Sep.30,2021

you push an object whose reference type is


v-for. The subscript cannot key with the object's index

Menu