VueJs之Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.

vue模板只能有一个根对象,需要将新加的对象写在原有的<div>中即可

往事如烟,余生有我.
原文地址:https://www.cnblogs.com/assistants/p/10430505.html