在安装了eslint时,保存代码时VSCode不会自动修复简单的规范错误, 点击设置》Extensions》ESLint Eslint:Auto On Save Turns auto fix on save on or off 勾选