会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
码磊姐姐
雄关漫道真如铁,而今迈步从头越。
博客园
首页
新随笔
新文章
联系
订阅
管理
2022年2月22日
Vue报错:Component template should contain exactly one root element.
摘要: 我在写子组件的时候出现了这个错误。把父组件中的内容中用根元素包起来就可以了 错误代码: <template id="register"> <h3>注册</h3> <router-link to="/register/phone"> 手机号注册</router-link> <router-link t
阅读全文
posted @ 2022-02-22 22:47 码磊姐姐
阅读(77)
评论(0)
推荐(0)
编辑