修复备忘录插入图片不显示问题

Signed-off-by: zwx1126739 <zhanghong121@huawei.com>
This commit is contained in:
zwx1126739 2024-06-18 17:08:37 +08:00
parent 6cd504dfc8
commit 10de2461eb
4 changed files with 20 additions and 23 deletions

View File

@ -197,8 +197,8 @@ export struct NoteContentCompPortrait {
},
openAlbum: async () => {
let permissionList: Array<string> = [
"ohos.permission.READ_MEDIA",
"ohos.permission.WRITE_MEDIA",
"ohos.permission.READ_IMAGEVIDEO",
"ohos.permission.WRITE_IMAGEVIDEO"
]
let context: any = AppStorage.Get("context");
let AtManager = abilityAccessCtrl.createAtManager();

View File

@ -29,14 +29,6 @@
{
"name": "ohos.permission.INTERNET"
},
{
"name": "ohos.permission.READ_MEDIA",
"reason": "$string:read_media_permission"
},
{
"name": "ohos.permission.WRITE_MEDIA",
"reason": "$string:write_media_permission"
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason": "$string:media_location_permission"
@ -49,7 +41,12 @@
"name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND"
},
{
"name": "ohos.permission.READ_IMAGEVIDEO"
"name": "ohos.permission.READ_IMAGEVIDEO",
"reason": "$string:read_image_video_permission"
},
{
"name": "ohos.permission.WRITE_IMAGEVIDEO",
"reason": "$string:write_image_video_permission"
}
],
"deliveryWithInstall": true,

View File

@ -4,10 +4,6 @@
"name": "entry_MainAbility",
"value": "备忘录"
},
{
"name": "read_media_permission",
"value": "Used to read media file information in external storage of users"
},
{
"name": "media_location_permission",
"value": "Used for memo access to geographic location information in user media files"
@ -17,8 +13,12 @@
"value": "Used for memo data exchange between different equipment"
},
{
"name": "write_media_permission",
"value": "Used to write media file information in external storage of users"
"name": "read_image_video_permission",
"value": "Used to read images or video files from the user's public directory"
},
{
"name": "write_image_video_permission",
"value": "Used to modify image or video files in the user's public directory"
}
]
}

View File

@ -1,9 +1,5 @@
{
"string": [
{
"name": "read_media_permission",
"value": "用于备忘录读取用户外部存储中的媒体文件信息"
},
{
"name": "media_location_permission",
"value": "用于备忘录访问用户媒体文件中的地理位置信息"
@ -13,8 +9,12 @@
"value": "用于备忘录进行不同设备间的数据交换"
},
{
"name": "write_media_permission",
"value": "用于备忘录记录用户外部存储中的图片文件信息"
"name": "read_image_video_permission",
"value": "用于备忘录读取用户公共目录的图片或视频文件"
},
{
"name": "write_image_video_permission",
"value": "用于备忘录修改用户公共目录的图片或视频文件"
}
]
}