1import { mapState } from "vuex";
2
3computed: {
4 ...mapState(["settings"]),
5 computedProperty: {
6 get() {
7 return this.settings.valueInState;
8 },
9 set(valuePassedThrough) { //the value is passed through the v-model automatically
10 this.$store.dispatch(`storeAction`, valuePassedThrough);
11 }
12 }
13}