【Error】You may use special comments to disable some warnings

96 阅读1分钟

@[TOC]



错误描述

项目启动时出现了错误,错误如下:

在这里插入图片描述

这个错误是eslint的错误,如果我们没有按照eslint的代码规范,就会出现这个错误,我们只需要把eslint禁用就行



解决方法

解决如下: 找到项目的vue.config.js文件,添加一个属性

lintOnSave: false

在这里插入图片描述 这样解决了