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 5887212185a9bc56a284faf04a62242e570a1ffd..63269945f788c489d7a735122a0dfb5d1d6d8006 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));