- Update the way to use the data records on Vuex with Getters!

- Fix: mongodb call passing array todos and categiroes already splitted
This commit is contained in:
Paolo Arena
2019-02-27 02:58:41 +01:00
parent 0e98ac1eaa
commit fa17de24f0
60 changed files with 3133 additions and 1839 deletions

View File

@@ -59,18 +59,18 @@ export default class App extends Vue {
})
if (chiamaautologin) {
console.log('CHIAMA autologin_FromLocalStorage')
// console.log('CHIAMA autologin_FromLocalStorage')
UserStore.actions.autologin_FromLocalStorage()
.then((loadstorage) => {
if (loadstorage) {
if (UserStore.state.lang !== '') {
console.log('SETLOCALE :', this.$i18n.locale)
// console.log('SETLOCALE :', this.$i18n.locale)
this.$i18n.locale = UserStore.state.lang // Set Lang
} else {
UserStore.mutations.setlang(this.$i18n.locale)
}
console.log('lang CARICATO:', this.$i18n.locale)
// console.log('lang CARICATO:', this.$i18n.locale)
globalroutines(this, 'loadapp', '')
// this.$router.replace('/')