问题描述
注册用户时,我要将其信息保存在Cloud Firestore中。用户成功注册,但是不会立即保存到Cloud Firestore中。当您退出或退出页面时,我注意到它会写用户。是什么原因造成的?为什么没有立即将用户保存到数据库?有人经历过吗?谢谢!
/* Register globally */
this.$fireAuth.createuserWithEmailAndPassword(
this.registerField.email.value,this.registerField.password.value)
.then(data => {
/* Saving in cloud store */
return this.$fireStore.collection('users').doc(data.user.uid).set({
intra: this.registerField.intra.value,email: this.registerField.email.value,uid: data.user.uid})
})
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)