在用到 vue-property-decorator 时 vscode提示Parsing error: Using the export keyword between a decorator and a class is not allowed
解决方案:
在.eslintrc.js中修改:
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
}
在用到 vue-property-decorator 时 vscode提示Parsing error: Using the export keyword between a decorator and a class is not allowed
解决方案:
在.eslintrc.js中修改:
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
}