未验证 提交 1ca45294 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-wallpaper.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 35e04d3f
......@@ -642,7 +642,8 @@ restore(wallpaperType: WallpaperType): Promise&lt;void&gt;
**示例:**
```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.
先完成此消息的编辑!
想要评论请 注册