錯誤【Component template should contain exactly one root element】多個根元素

在寫vue的時候報錯: 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-ELS-I
相關文章
相關標籤/搜索