npm run serve 后报出以下错误:
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的问题,解决方案如下:
在vue.js.config中添加这行代码,问题就解决了。