vue警告: component lists rendered with v-for should have explicit keys

warning信息:component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.

在v-for中绑定key值可解决:

<router-link :to="{path: goods.url}" v-for="(goods,index) in ftg.goods" :key=index target="_blank" :title="goods.name">{{goods.name}}</router-link>

 

posted @ 2019-11-16 10:31  Redchar  阅读(2693)  评论(0编辑  收藏  举报