如何关闭vue-cli3+中的代码校验 在vue项目的根目录下创建 vue.config.js目录 module.exports = { lintOnSave: false //false为关闭true为开启 } 加入之后,重启项目就可以了