使用router-link做循环处理的时候,写的代码是

记录一次使用v-for使用报错,提示component lists rendered with v-for should have explicit keys

然后控制台提示component lists rendered with v-for should have explicit keys

记录一次使用v-for使用报错,提示component lists rendered with v-for should have explicit keys

在官网看一了下v-for的使用

记录一次使用v-for使用报错,提示component lists rendered with v-for should have explicit keys

然后添加了一个key,通过

记录一次使用v-for使用报错,提示component lists rendered with v-for should have explicit keys

相关文章: