提交 1b745684 编写于 作者: 葛亚芳

fixed 1ca45294 from https://gitee.com/ge-yafang/docs/pulls/12262

update zh-cn/application-dev/reference/apis/js-apis-wallpaper.md.
Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 e4727f49
......@@ -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.
先完成此消息的编辑!
想要评论请 注册