From 03b868cb874d35ef2d4d22a4d50b08ddffa4ac57 Mon Sep 17 00:00:00 2001 From: fangyun Date: Wed, 7 Sep 2022 09:53:20 +0800 Subject: [PATCH] update edm doc Signed-off-by: fangyun --- ...-apis-enterpriseDeviceManager-DeviceSettingsManager.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-enterpriseDeviceManager-DeviceSettingsManager.md b/zh-cn/application-dev/reference/apis/js-apis-enterpriseDeviceManager-DeviceSettingsManager.md index 2a0f52aaf6..d5d8a3659a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-enterpriseDeviceManager-DeviceSettingsManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-enterpriseDeviceManager-DeviceSettingsManager.md @@ -13,7 +13,13 @@ ```js import enterpriseDeviceManager from '@ohos.enterpriseDeviceManager' -let deviceSettingsMgr = enterpriseDeviceManager.getDeviceSettingsManager(); +enterpriseDeviceManager.getDeviceSettingsManager((error, mgr) => { + if (error) { + console.log("error code:" + error.code + " error message:" + error.message); + return; + } + let deviceMgr = mgr; +}); ``` ## DeviceSettingsManager.setDateTime -- GitLab