From de8142b63a9e703280008adaac329d32ab128c4b Mon Sep 17 00:00:00 2001 From: weishaoxiong Date: Thu, 28 Jul 2022 17:04:44 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20weishaoxiong=20=20fix:=20wallpaper=E9=83=A8=E4=BB=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9A=84=E5=AE=8C=E6=95=B4=E6=80=A7=E5=92=8C=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/apis/js-apis-wallpaper.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md index bc165fd64f..06786292b2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @@ -389,7 +389,7 @@ reset(wallpaperType: WallpaperType): Promise<void> 移除指定类型的壁纸,恢复为默认显示的壁纸。 -**需要权限:**ohos.permission.SET_WALLPAPER +**需要权限**:ohos.permission.SET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -422,7 +422,7 @@ setWallpaper(source: string | image.PixelMap, wallpaperType: WallpaperType, call 将指定资源设置为指定类型的壁纸。 -**需要权限:** ohos.permission.SET_WALLPAPER +**需要权限**:ohos.permission.SET_WALLPAPER **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -530,7 +530,7 @@ getFile(wallpaperType: WallpaperType, callback: AsyncCallback<number>): vo 获取指定类型的壁纸文件。 -**需要权限**:ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -559,7 +559,7 @@ getFile(wallpaperType: WallpaperType): Promise<number> 获取指定类型的壁纸文件。 -**需要权限:** ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -592,7 +592,7 @@ getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback<image.Pixel 获取壁纸图片的像素图。 -**需要权限**:ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -621,7 +621,7 @@ getPixelMap(wallpaperType: WallpaperType): Promise<image.PixelMap> 获取壁纸图片的像素图。 -**需要权限**:ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER 和 ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper -- GitLab