FIX scFormTable 新增复杂结构行时数据混乱

This commit is contained in:
sc 2021-09-18 15:08:04 +08:00
parent 865e74f6aa
commit 4413dc17b2
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@
}) })
}, },
rowAdd(){ rowAdd(){
this.data.push({...this.addTemplate}) const temp = JSON.parse(JSON.stringify(this.addTemplate))
this.data.push(temp)
}, },
rowDel(row, index){ rowDel(row, index){
this.data.splice(index, 1) this.data.splice(index, 1)