Duplicate keys detected: ‘0‘. This may cause an update error.found in

1.最近遇到了这个问题,在网上查了下解决方法。

这是我一开始写的东西:

	<view class="phone" v-for="(item,index) in list" :key="index"></view>

后来将key值修改了下,就可以了

<view class="phone" v-for="(item,index) in list" :key="'info-'+index"></view>

猜你喜欢

转载自blog.csdn.net/qq_44890362/article/details/122938256