My Vuex Store is built using Vuex module decorators and I am facing an issue with using a getter for a computed property. Here is my code:
@Module
export default class WorkoutModule extends VuexModule {
_workout: Workout;
@Mutation
startWorkout(workout) {
this._workout = workout;
}
get workout() { return Workout; }
}
I tried to use the getter as a computed property like this:
computed: {
...mapGetters(['workout'])
},
However, it does not seem to be working properly.