Component template should contain exactly one root element.

今天在寫關於嵌套路由的示例的時候,項目一直報錯,提示 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.,項目報錯的代碼如下 對於這個錯誤一直百思不得其解,後來上網查了資
相關文章
相關標籤/搜索