vue组件报错Component template should contain exactly one root element. If you are using v-if on multi...
Componenttemplateshouldcontainexactlyonerootelement.Ifyouareusingv-ifonmultipleelements,usev-else-iftochaintheminstead.这意思是组件使用是需要一个根标签,我们注册父子组件的时候外面要有个