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
源代码:
修改后: