1.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
错误原因:组件模板应该只包含一个根元素。
解决办法:在template标签下在添加一个div标签。
如下所示:
菜鸟问题之VUE
》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》

相关文章:

  • 2021-06-05
  • 2022-01-20
  • 2022-12-23
  • 2022-01-29
  • 2022-03-09
  • 2022-12-23
  • 2021-12-03
  • 2021-11-28
猜你喜欢
  • 2021-06-21
  • 2022-02-12
  • 2021-09-28
  • 2021-06-14
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
相关资源
相似解决方案