在vue-cli4 原有的项目中引入ts npm引入相关的模块: "typescript": "^4.2.3", "@vue/eslint-config-typescript": "^7.0.0", "@typescript-eslint/eslint-plugin": "^4.15.1", "@typescript-eslint/parser": "^4.15.1", "vue-class-component": "^7.2.6", "vue-property-decorator"