Vue脚手架报错:‘v-model‘ directives require no argument 解决方案

1、报错:v-model directives require no argument 截图2、原因:ESLint对vetur进行了eslint检查3、解决方法① 修改模板中使用v-show将 v

1、报错:

'v-model' directives require no argument 

截图

 2、原因:

ESLint对vetur进行了eslint检查

 

3、解决方法

① 修改模板中使用v-show

v-model:show="show" 改为 v-model="show"

② vetur插件的作者给出了解决办法

 我们可以把eslint对该插件的检查关闭

在VScode中,打开“ 文件 > 首选项 > 设置 ”,搜索 Vetur › Validation: Template ,关闭语法检查

 保存,再看项目,正常运行!!!

问题解决

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754942105a5218321.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信