Duplicate keys detected: ‘0‘. This may cause an update error. 解决办法

 <view class="" v-for="(bind, bindex) in ite.bindcar" :key="bindex">
            <view class="" style="font-weight: bold;">{ {bind.auto_text}}</view>
            <view class="param" v-for="(param, pindex) in bind.param_texts" :key="pindex">{ {param.param_text}}</view>
 </view>

改为:

<view class="" v-for="(bind, bindex) in ite.bindcar" :key="'info-'+bindex">
            <view class="" style="font-weight: bold;">{ {bind.auto_text}}</view>
            <view class="param" v-for="(param, pindex) in bind.param_texts" :key="pindex">{ {param.param_text}}</view>
 </view>

猜你喜欢

转载自blog.csdn.net/weixin_44285250/article/details/109310714