码上敲享录 > vue.js常见问题详解 > 关于- Component template should contain exactly one root element. If you are using v-if on multiple el

关于- Component template should contain exactly one root element. If you are using v-if on multiple el

上一章章节目录下一章 2019-10-22已有1842人阅读 评论(0)

关于- 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></div>

</template>


以下标签会报上述错误,<template>中只能有一个根元素

<template>

<div></div>

<div></div>

</template>


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交