use vue+element to do a simple function, that is, a table is to click the add button, enter a piece of data, and then add the input data to a column of the table. As a result, there is a problem. Go directly to the code:
. handleAdd() {
this.dialogFormVisible=false
console.log(this.form)
this.tableData.unshift(this.form)
for(let key in this.form){
this.form[key]=""
}
},
formv-modelformtableDatafor informtableDatajsformtableData