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 報錯原因:vue模板只能有一個根節點 解決:給裏面的所有代碼套一層<div></div>
相關文章
相關標籤/搜索