userSaveSession() {
return this.$store.getters('userSaveSession')
}
,
userSaveSession() {
this.$store.getters.userSaveSession
}
firebase.auth().onAuthStateChanged(async (user) => {
if (user) {
try {
await this.$store.dispatch('userSaveSession', user)
} catch (err) {
//
}
}
});
https://sitecoder.blogspot.com/, https://xmoonlight.github.io/
created() {
firebase.auth().onAuthStateChanged(async (user) => {
try {
await this.$store.dispatch('userSaveSession', user)
} catch (err) {
}
});
...
},
Object.keys(obj).map(key =>
obj[key].length > 0 || typeof obj[key] === "boolean" ? true : delete obj[key]
)
console.log(obj)