未验证 提交 17884c5c 编写于 作者: O openharmony_ci 提交者: Gitee

!12262 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-wallpaper.md.

Merge pull request !12262 from 葛亚芳/N/A
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册