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:
扫描二维码关注公众号,回复:
3046281 查看本文章
在你引用的内容上加上字符串格式的标签符号。
解决方案3:
去学英语吧。