This commit is contained in:
Pan 2019-01-16 10:17:40 +08:00
parent 41ba57282d
commit f2ef954821
1 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,13 @@ export default {
}
},
pushEle(ele) {
for (const item of this.list2) {
if (item.id === ele.id) {
const index = this.list2.indexOf(item)
this.list2.splice(index, 1)
break
}
}
if (this.isNotInList1(ele)) {
this.list1.push(ele)
}