问题代码
<a-row
class="list-item"
v-for="(item, index1) in personList"
:key="index1"
>
<a-col :span="3">
<span>
<!-- 编辑人员信息 -->
<editPersonInfo v-model:personInfo="item"></editPersonInfo>
</span>
</a-col>
</a-row>
报错如下图:
意思就是不能更新迭代器本身,我就换了方式
<editPersonInfo v-model:personInfo="personList[index1]"></editPersonInfo>
相当于是曲线引用了,可行了~