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
Component template should contain exactly one root element

报错原因:vue模板只能有一个根节点
解决:给里面的所有代码套一层<div></div>

相关文章:

  • 2021-07-26
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2021-10-10
  • 2021-06-17
  • 2021-08-29
  • 2022-01-21
  • 2021-10-07
相关资源
相似解决方案