vue启动报错 Emitted value instead of an instance of Error
vue项目install正常,npm run dev启动时因为警告导致项目不能启动。异常提示:(Emitted value instead of an instance of Error)<el-row v-for="item in order.products">: component lists rendered with v-for should have explicit ke
·
vue项目install正常,npm run dev启动时因为警告导致项目不能启动。
异常提示:
(Emitted value instead of an instance of Error)
<el-row v-for="item in order.products">: component lists rendered with v-for should have explicit keys.
See https://vuejs.org/guide/list.html#key for more info.
异常分析:
transition-group标签的子元素上,不要使用v-for索引作为键,否则与不使用键相同
解决方案:
v-for 指定下标,:key="index"
更多推荐
已为社区贡献6条内容
所有评论(0)