0
내 코드가에 따라, 새로운 변화를 발생하지 않습니다.중포 기지 사용자 개체는 자식 사용자 정의 요소에서 업데이트 된 사용자
(페이스 북 twetter 같은) 연결 사회 제공시user:{type: Object,
notify:true},
나는 새로운 자격의 데이터 user.displayName 및 user.photoURL를 업데이트합니다. 다음을 포함합니다 :
user.providerData.forEach(function (profile) {
if (profile.providerId==authId) {
user.updateProfile({
displayName: profile.displayName,
photoURL: profile.photoURL
}).then(function() {
console.log("update succesfull"); // Update successful.
}, function(error) {
// An error happened.
});
}
});
업데이트에 성공했습니다. 그러나 부모 요소 (위의 jj-login.html)에서는 사용자 이름과 사진이 자동으로 업데이트되지 않습니다. (변경 사항이 적용되지 않음) 어떻게 해결할 수 있습니까?
user.updateProfile(...).then(() => {
this.notifyPath('user.displayName');
this.notifyPath('user.photoURL');
});
시도 this.notifyPath '('user.displayName ')'대신에 'this.notifyPath ('user.photoURL ')': – tony19
토니에게 큰 도움이됩니다. 고맙습니다. :) :) – HakanC
@Hakan 문제 없음 :) – tony19