解决报错 Vue Expected indentation of x spaces but found x
解决报错 Vue Expected indentation of x spaces but found x1. 出现原因2. 解决方法2.1 方法一 (推荐)2.2 方法二1. 出现原因1. Vue 项目中 Eslint 严格把控代码规范.2. 缩进未按照 Eslint 代码规范.2. 解决方法2.1 方法一 (推荐)找到项目下的 .eslintrc.js 文件.在指定位置加入下面内容:'indent': ['off', 2],2.2 方法二关闭 Eslint 检验, 不推
复制链接