Vuex getters failed to update with state

recently encountered a very frustrating situation on the development platform.
to put it simply, logical code can be changed in some places and suddenly not in some places

state

data similar to credit card users are stored as Array < Object >

mutations: {
updateUserCard(state, newCard) {
state.userCardsArray.forEach((userCard, key) => {
if(userCard.id == newCard.id){
// 
state.userCardsArray.splice(key, 1);
// 
state.userCardsArray.splice(key, 0, newCard)
}
});
}
}

although it can solve the problem, I feel helpless about this mistake.
I would like to ask someone to give me some advice
Thank you for reading

.
Oct.11,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40172-2c4ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40172-2c4ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?