Commit d6294d48 authored by zhang's avatar zhang
parents 3178f644 c30bb5a1
......@@ -70,20 +70,18 @@ export default {
return
}
let old = this.value || []
if (this.prop == 'chcek2' || this.prop == 'chcek0') {
this.items.options.map(i => {
if (name) {
if (Array.isArray(old) && flag.includes(String(i.id))) {
old.push(i.id)
}
} else {
if (flag.includes(String(i.id))) {
console.log(i.id)
old = this.removeItem(old, i.id) || []
}
this.items.options.map(i => {
if (name) {
if (Array.isArray(old) && flag.includes(String(i.id))) {
old.push(i.id)
}
})
}
} else {
if (flag.includes(String(i.id))) {
console.log(i.id)
old = this.removeItem(old, i.id) || []
}
}
})
this.value = old
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment