出现这个错误是因为eslint格式问题。 可以找一个是否哪里多了一个逗号,或者少了个空格等。 或者是关闭eslint: vue.config.js 中添加: module.exports = { lintOnSave: false, }