报错 Component template should contain exactly one root element. If you are using v-if on multiple ...

在最外层写一个div,把所有的前端代码放进去就好了

参考

成功解决Component template should contain exactly one root element_前方一片光明-CSDN博客

你可能感兴趣的:(报错 Component template should contain exactly one root element. If you are using v-if on multiple ...)