美文网首页
vue报错:Component template should

vue报错:Component template should

作者: 小明同学喜欢熊 | 来源:发表于2019-06-04 13:27 被阅读0次
    • 错误提示 如图


      错误提示
    • 报错原因:

      • 在vue模板 template 中只能有一个根节点。
    • 修改:

      • 在两个平行元素节点加上一个 div, 如图
        修改后

    相关文章

      网友评论

          本文标题:vue报错:Component template should

          本文链接:https://www.haomeiwen.com/subject/cvplxctx.html