刷新后出现图像

我将图像上传到我的Web应用程序中的UploadPage上。我需要先预览图像,然后再将图像保存在AddNewPage上。我在会话中临时存储图像,以将所选图像从UploadPage携带到AddNewPage。我需要每次刷新页面以在AddNewPage上获取新图像。

那是因为缓存吗?还是我需要做的其他事情?

我在UploadImage页面上的代码

fileSelected(event) {

var reader = new FileReader();
reader.readAsDataURL(event.target.files[0]);
reader.onloadend = () => {
    this.Image = reader.result;
    //console.log(this.Image);
    this.storageService.setSessionItem("Image", this.Image)
    //this.Image = base64data;
}
return this.router.navigateToRoute("AddNew");

}

AddNew页面上的代码

getImage() {
    this.Image = this.storageService.getSessionItem("Image");
}