1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 02:41:34 +08:00
This commit is contained in:
Pan 2019-01-16 10:17:40 +08:00
parent 41ba57282d
commit f2ef954821

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)
}