template上使用v-for报错
在template标签上使用v-for报错
cannot be keyed. Place the key on real elements instead
查了一下百度,是因为key需要绑定在真实的元素上

解决方法:
1、将template标签替换成别的标签
2、将key绑定值写在别的元素上

在template标签上使用v-for报错
cannot be keyed. Place the key on real elements instead
查了一下百度,是因为key需要绑定在真实的元素上

解决方法:
1、将template标签替换成别的标签
2、将key绑定值写在别的元素上
