为了账号安全,请及时绑定邮箱和手机立即绑定

The template root requires exactly one element

停用了ESlint,但还是报The template root requires exactly one element,请问怎么解决的

正在回答

2 回答

意思应该是说<template></template>之中只能有一个根元素。

把所有代码写在<div></div>里就好吧。

0 回复 有任何疑惑可以回复我~
#1

qq_丽丽在木_0

他应该说的是vue3,vue3支持多个跟标签
2020-11-27 回复 有任何疑惑可以回复我~

在创建项目的时候就设置不要引用eslint规则

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

The template root requires exactly one element

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号