![](https://img-blog.csdnimg.cn/img_convert/52dcad726a58dad7cde648e695aca308.png)
如图,选中考试范围时,v-model绑定的值是一个数组,但是api接口需要的数据结构是
scheduleScopeList: [{ id: "1635461443790221314" },{ id: "1635461443790227970" }]
这种,即需要绑定一个数组对象
解决思路
![](https://img-blog.csdnimg.cn/img_convert/3adcbcaccd5912f33d8d364dd606ec81.png)
首先绑定value-key="id",然后:value="{ id: obj.id }"即可
如图,选中考试范围时,v-model绑定的值是一个数组,但是api接口需要的数据结构是
scheduleScopeList: [{ id: "1635461443790221314" },{ id: "1635461443790227970" }]
这种,即需要绑定一个数组对象
解决思路
首先绑定value-key="id",然后:value="{ id: obj.id }"即可