方法一: 把vue.config.js文件中的 lintOnSave:为false,(注意:vue.config.js文件修改过需要重新启动项目) 方法二: 把 .eslintrc.js 文件的parser: 'babel-eslint'给注释掉