首页 > 其他分享 >Vue中经常出现 报错:Component name “xxxx“ should always be multi-word.

Vue中经常出现 报错:Component name “xxxx“ should always be multi-word.

时间:2022-08-16 10:00:52浏览次数:60  
标签:multi Vue xxxx Component should 报错 word

报错:Component name “xxxx” should always be multi-word.意思是说组件名"xxxx"应该总是多个单词,其实就是eslint报出我的组件名称命名不规范,应该采用驼峰命名法。

解决方法就是在vue.config.js文件中写入lintOnSave:false,修改完毕后重启项目即可

 

标签:multi,Vue,xxxx,Component,should,报错,word
From: https://www.cnblogs.com/shaoyishi/p/16590585.html

相关文章