Cannot use v-for on stateful component root element because it renders multiple elements.
报错运行vue项目的时候,有时候会报错Cannot use v-for on stateful component root element because it renders multiple elements.代码如下:报错原因及解决办法v-for不能用于根元素(root element)。因为v-for是个循环,它返回更多的元素。导致无法渲染。应该加一个父元素...