dasd
asdasdsubmit() { if (this.newValue) { this.dataOptions.push({ name:this.searchText, autoIncrement: this.autoIncrement++, value: false, newValue: true, }) } else { let arrayNew = [...this.dataOptions.filter(v => v.value === true)]; console.log(arrayNew); // this.$emit('submit', arrayNew); this.closeModal(); console.log(arrayNew); }