Vue运行,出现warning(Emitted value instead of an instance of Error)
vue运行时,出现warning:(Emitted value instead of an instance of Error) <CarouselItem v-for="item in bannerlist">: component lists rendered with v-for should have explicit keys. See h
·
vue运行时,出现warning:(Emitted value instead of an instance of Error) <CarouselItem v-for="item in bannerlist">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
截图如下:
解决方法:在组件内加入自定义属性key
源代码:
修改后:
更多推荐
已为社区贡献1条内容
所有评论(0)