findIndex

let indexs = this.formData.authlist.findIndex(item =>  item ===itemId)
                    if(index != -1){
                        this.formData.authlist.splice(indexs,1)
                    } 

 

你可能感兴趣的:(findIndex)