How to set values from a child component (settings page) using vuex store in a Vue.js app?
问题 I'm trying to create a "settings" component which saves selected values into a store so that all the other components can use those values to change their appearance. SettingsView.vue: One of the settings (you can also see it on codepen): [...] <p>{{ themeColor }}</p> <v-radio-group v-model="themeColor"> <v-radio label="light" value="light"></v-radio> <v-radio label="dark" value="dark"></v-radio> </v-radio-group> [...] <script> export default { data () { return { // default value themeColor: