小程序为什么通过setData重新给数组其中一项赋值,其他对象的状态也被修改了?
![](https://image.wxopen.club/content_b9de3960-497a-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_b9fdf764-497a-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_ba168c3e-497a-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_ba31cd5a-497a-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_ba51437e-497a-11ea-9ec1-a0999b08aadb.png)
![](https://image.wxopen.club/content_ba6fbc0a-497a-11ea-9ec1-a0999b08aadb.png)
partslist是从后台获取的数据,我通过循环partslist.front给partslist.front里面加了一个type字段,type的格式如第二张图,我想修改front里其中一项的type的choose的值,去判断页面选中不选中的状态,但是为什么front.type里的钣喷的choose都被修改了,我只想修改列表里我点击的其中一个,我的代码写的哪里有问题吗?