Vue splice deletes elements from an array

Delete elements from the array


Picture description

     
      if(goodsitem.num == 0){
        self.goodslist.splice(index,1)
        console.log(self.goodslist)
      }
Mar.30,2021

did you add key to the element


did you solve the problem? I have the same problem? Ask the boss to tell me how to solve it

Menu