@MaverickChan How would my code fail? When splicing the array an item is removed and the indexes are reset, so is the reference in the click event. As it is used in the loop, the index is always available.
@MaverickChan It is indeed true that the indexes are different when removing items since the array is modified. The index in the v-for is still the array index - but of the "modified" array. It is not removing wrong records when using the index from the loop. It could only cause problems when using the index of the original array (separately stored from this.arr) but I don't see the point of that as it is not used here.
@ramonrietdijk my solution is to avoid any mistake. In this case , maybe you can say it's ok, but what about next time ? What about another case? Just wanna do the right thing , this could save you a lot of time in the future.