mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 02:41:34 +08:00
fix bug
This commit is contained in:
parent
41ba57282d
commit
f2ef954821
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user