注册后,我想创建一个值为'spin'= 1的文档
auth.createUserWithEmailAndPassword(email, password).then(() => {
db.collection('users').doc(this.user.uid).set({
spin: 1
})
})
但是出现错误
Uncaught (in promise) TypeError: Cannot read property 'spin' of undefined(…)