Код: Выделить всё
const townList = computed(() => {
const items: Town[] = [];
filtredList.value.forEach((group) => {
items.push(...group.towns);
});
return items;
});
Подробнее здесь: https://stackoverflow.com/questions/794 ... able-not-b
Код: Выделить всё
const townList = computed(() => {
const items: Town[] = [];
filtredList.value.forEach((group) => {
items.push(...group.towns);
});
return items;
});