我正在上传图片,我需要它们在不重新加载页面的情况下显示
.subscribe(res => {
if(this.newFamMember.imageFile) {
res.Id;
let data = {
Entity: 'Patient',
Id: res.Id,
Images: [
{
FileName: this.newFamMember.imageFile.name,
EntityType: 'ImagePath'
}
]
};
let dataArr = [data];
this.patientService.addImage(dataArr, [this.newFamMember.imageFile]);
}
this.currentUserData.familyMembers.push(this.patient1);
this.alerts.showSuccess("Cambios guardados con éxito", '', 3);
},
一切正常,只是它在上传时不显示并且需要刷新页面 我肯定这很简单,但是我在堆栈溢出时找不到答案