一、问题描述
代码:
1. multipleSelection
是当前选中的表格数据(是数组),
2. FormInAddPopup
是弹框中的数据(是对象),
3. 下面的代码在我清空FormInAddPopup
的时候,表格中的那行数据也相应的被清空了。
this.FormInAddPopup = this.multipleSelection[0];
二、解决办法
this.FormInAddPopup = JSON.parse(JSON.stringify(this.multipleSelection[0]));