Error compiling template:
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
错误编译模板:
组件模板应该恰好包含一个根元素。如果在多个元素上使用v-if,则使用v-else-if将它们链接起来
加上这个div标签就好了,原因是:template标签只能包含一个元素,想要包含多个就要把他们用div包起来