From 1ca45294fdd6ceeed4e4ed693da0fbe5b9fdc112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Thu, 8 Dec 2022 03:21:14 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-wallpaper.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- zh-cn/application-dev/reference/apis/js-apis-wallpaper.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 5887212185..63269945f7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @@ -642,7 +642,8 @@ restore(wallpaperType: WallpaperType): Promise<void> **示例:** -```js wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((data) => { +```js +wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((data) => { console.log(`success to restore.`); }).catch((error) => { console.error(`failed to restore because: ` + JSON.stringify(error)); -- GitLab