From 587e62439c559a1b4acf1df75046e266e3e049cb Mon Sep 17 00:00:00 2001 From: maka <113342266+ajkshfjkaj@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:05:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0asset=E4=B8=AD?= =?UTF-8?q?=E7=9A=84id=20(#15)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: maikai (A) --- harmony/image_picker/src/main/ets/ImagePickerTurboModule.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/harmony/image_picker/src/main/ets/ImagePickerTurboModule.ts b/harmony/image_picker/src/main/ets/ImagePickerTurboModule.ts index c11c0ca1e..59c933413 100644 --- a/harmony/image_picker/src/main/ets/ImagePickerTurboModule.ts +++ b/harmony/image_picker/src/main/ets/ImagePickerTurboModule.ts @@ -205,6 +205,7 @@ export class ImagePickerTurboModule extends TurboModule { const { fileName, type } = this.getImgTypeAndName(uri); imgObj.fileName = fileName; imgObj.type = type; + imgObj.id = fileName; imgObj.originalPath = uri; let file = fs.openSync(uri, fs.OpenMode.CREATE); imgObj.fileSize = this.getFileSize(file.fd);