dasd
asdasdunknown
ada
3 years ago
455 B
9
Indexable
submit() {
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);
}Editor is loading...