我在我的应用程序中显示以前上传的图像时遇到问题 .

this.profiles.filepath //value of this varible is  {0: "/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u25.jpeg", 1: "/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u26.jpeg", 2: "/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u27.jpeg"}

for (let i in this.profiles.filepath) {
          this.uploadedImages.push(this.uri + "" + this.profiles.filepath[i]);
        }



this.restImage = [
          "http://localhost:4000/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u25.jpeg",
          "http://localhost:4000/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u26.jpeg",
          "http://localhost:4000/uploads/Restaurants/profile/1544420574509-5yg9t54cjphw4u27.jpeg"
        ];

这是我在componet.ts中的javascript代码,下面是用于文件上传的html标记 .

<image-upload [preview]="true" [uploadedFiles]='uploadedImages' [max]="10"  (uploadFinished)="onSelectFile($event)" (removed)="onRemoved($event)"></image-upload>

当我在html标签而不是 uploadedImages 中编写 restImage 时,它会显示预览,但在 uploadedImages 的情况下,它不会显示任何形状 . 在控制台日志中,两个变量具有相同的值我找不到任何问题 . 有谁能够帮我?

提前谢谢 .