Vue報錯

關於 The template root requires exactly one element 報錯的解決方案 報錯原因 Vue只允許模板裏存在一個根節點。 解決方案 在template模板中添加一個div標籤,之後的所有的組件全部加在 div即可解決
相關文章
相關標籤/搜索