dasd

asdasd
mail@pastecode.io avatar
unknown
ada
2 years ago
455 B
2
Indexable
Never
 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);
      }