我正在开发一个简单的firebase图像上传页面;但上传文件图片后,由于url相同,因此无法自行更新 . 但我希望它是一样的 . 所以我尝试复习以获得新的图像,它完美的工作,但我必须从顶部拉下来 .

我想在单击按钮时运行此功能,并上传完成 .

pullMin="100"
pullingIcon="arrow-dropdown"
pullingText="Yenilemek için çekin"
refreshingSpinner="circles">
TS;
doRefresh(refresher) {
const ppRef = storage().ref(`ProfilePictures/${this.myUid}`)
ppRef.getDownloadURL().then(url => {
this.ppURL = url
refresher.complete();
}).catch(err => {
// Handle errors
});
}

当我拉下来并且图像更新时它完美有效 . 但我无法在另一个功能(单击按钮)中运行此功能 .

this.doRefresh();

此命令给出错误 . 无论如何你知道要解决这个或任何建议吗?