|
@@ -263,9 +263,9 @@ const toSelect = (data, item) => {
|
|
|
if (val.title == data.title) {
|
|
|
for (const i of data.list) {
|
|
|
if (i.value == item.value) {
|
|
|
- i.is_active = !i.is_active
|
|
|
- if (i.is_active == true) selectList.value.push({ ...i, ...{ title: val.title } })
|
|
|
- else selectList.value = selectList.value.filter((f) => f.label != i.label)
|
|
|
+ i.is_active = true
|
|
|
+ const select = selectList.value.find((f) => f.label == i.label)
|
|
|
+ if (!select) selectList.value.push({ ...i, ...{ title: val.title } })
|
|
|
}
|
|
|
}
|
|
|
}
|