[Vuejs]-Property 'positive_rule' does not exist on type '{ addMore(): void; remove(index: any): void;

0👍

You probably wanted to write it this way:

methods: {
addMore: () => {
  this.positive_rule.push({
    positive_rule: "",
  });
},
remove: (index: any) => {
  this.positive_rule.splice(index, 1);
},
}

Leave a comment