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>中即可

猜你喜欢

转载自www.cnblogs.com/assistants/p/10430505.html