4
2
Fork 0

called 'set_settings' mutation on app created hook'

This commit is contained in:
Erastus Amunwe 2020-10-27 22:39:08 +02:00
parent 954b807595
commit b8cd842804
1 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,15 @@ export default {
navbar,
options
},
created(){
const userSettings = localStorage.getItem('settings');
if (userSettings) {
const settings = JSON.parse(userSettings);
this.$store.commit('set_settings', settings);
}
}
}
</script>