错误:
Component template should contain exactly one root elementIf you are using v-if on multiple elements, use v-else-if to chain them instead.
解决:
template标签下必须有一个view标签套在其他元素外面
不能是一个view和一个button并列
错误:
Component template should contain exactly one root elementIf you are using v-if on multiple elements, use v-else-if to chain them instead.
解决:
template标签下必须有一个view标签套在其他元素外面
不能是一个view和一个button并列