在使用v-for的时候遇到了这样的错误:Cannot use v-for on stateful component root element because it renders multiple elements. 错误如图: 错误的原因:不能在根元素(root element)使用 v-for,因为v-for是个循环体呈现多个元素,v-for在根元素上导致无法渲染 错误的代码: 修改代码: