第一次接触vuecli就遇到问题,跟着尚硅谷p62视频写遇到了老师没有的问题。
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
大概翻译内容是ESLint 对语法的要求过于严格导致编译的时候报上图那些错误。
解决办法一:在全局配置中将关闭语法检查。
module.exports = {
lintOnSave: false, //关闭语法检查
}