Fix switch with array
This commit is contained in:
parent
d1dfcb3a04
commit
fed0e95f14
|
@ -80,9 +80,9 @@ const v = computed({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var a = props.modelValue.filter((i) => i !== this.value);
|
var a = props.modelValue.filter((i) => i !== props.value);
|
||||||
if (v) {
|
if (v) {
|
||||||
a.push(this.value);
|
a.push(props.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit('update:modelValue', a);
|
emit('update:modelValue', a);
|
||||||
|
|
Loading…
Reference in New Issue