Closed ivolkoff closed 6 years ago
I have Mixin class. When i use the decorator, console.log show undefined, but when I use the function, i has right result.
import {Component, Vue, Watch} from "vue-property-decorator"; import {Mutation, State, Action} from "vuex-class"; @Component export default class MixinStatisticComponent extends Vue { //@State(state => state.statistic.table) table; get table(){ return this.$store.state.statistic.table; } mounted(){ console.log(this.table); } }
Could you provide a self-contained reproduction?
when i add <script lang="ts"> problem away
<script lang="ts">
I have Mixin class. When i use the decorator, console.log show undefined, but when I use the function, i has right result.