我正在尝试使用以下代码更新displayName。但是我得到一个错误,说无法解析displayName。看起来它没有将{displayName:'test name',photoURL:'url to photo'}作为参数。我正在遵循Firebase示例和我在其他地方找到的示例,但无法使其正常工作。currentUser.updateProfile({displayName:"tes
当用户注册时,我希望触发updateProfile来添加更多的用户数据,然后,在onAuthStateChanged in my main.js中,将所有用户数据保存在vuex中,以便在我的应用程序中使用,但是onAuthStateChanged在updateProfile之前执行,所以在vuex displayName和photoURL中没有定义。(this.email, this.password) firebase