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.
你需要设置一个根元素。
解决方案1:
template="<div>原有内容</div>"
或者你别的什么标签也罢。
解决方案2:
在你引用的内容上加上字符串格式的标签符号。