解析器不一致,导致ts的某些特性不能使用,真坑

This commit is contained in:
xuyanfeng
2021-04-03 20:27:39 +08:00
parent a30e435f00
commit b928d14688
6 changed files with 39 additions and 21 deletions

View File

@@ -9,6 +9,13 @@ import {Component, Prop, Vue} from "vue-property-decorator";
@Component
export default class HelloWorld extends Vue {
@Prop()
msg = ''
created() {
debugger
console.log(this.msg)
}
}
</script>

View File

@@ -35,6 +35,7 @@
</a>
</div>
</div>
<HelloWorld msg="fsfsf"></HelloWorld>
</div>
</template>