How to solve the original data varies with the data after assignment after assignment vue

Examples of errors

this.leftColumn = {...this.Columns};
this.rightColumn = {...this.Columns};
1
2
正确示例

this.leftColumn = JSON.parse(JSON.stringify(this.Columns));
this.rightColumn = JSON.parse(JSON.stringify(this.Columns));
———————————————— 

Guess you like

Origin www.cnblogs.com/mrt-yyy/p/11774757.html