代码如下:
控制台报错:(Emitted value instead of an instance of Error) Do not use v-for index as key on children, this is the same as not using keys.
报错的大概意思是:作为 子级的列表元素 不要使用index作为键,否则就跟没有设置键一样。
那么按理修改key就可以解决。
于是修改::key="item.id"
至此解决。
(Emitted value instead of an instance of Error) Do not use v-for index as key on <transition-group>
于 2022-01-24 16:13:43 首次发布