【错误总结】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.

 

大致意思是因为模板里面应该包含一个根元素,使用组件的时候应该用div或p标签包起来

posted @ 2019-12-13 13:51  super_胡  阅读(450)  评论(0编辑  收藏  举报