chenMeiFeng

导航

多选框思路

 

 

if (this.unlandfile.length) {
var index = this.unlandfile.findIndex(item1 => imagepath.path == item1.path)
if (index != -1) {
this.unlandfile.splice(index, 1)
} else {
this.unlandfile.push(imagepath)
}
} else {
this.unlandfile.push(imagepath)
}

posted on 2022-04-25 11:41  CV搬运工  阅读(33)  评论(0编辑  收藏  举报