未验证 提交 751b1ca4 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-enterprise-device-manager.md.

Signed-off-by: NLiAn <lian15@huawei.com>
上级 2a53d406
......@@ -40,8 +40,8 @@ let wantTemp = {
abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
name = "enterprise name",
description = "enterprise description"
name: "enterprise name",
description: "enterprise description"
}
enterpriseDeviceManager.activateAdmin(wantTemp, enterpriseInfo, enterpriseDeviceManager.AdminType.ADMIN_TYPE_NORMAL, (error, result) => {
if (error != null) {
......@@ -86,8 +86,8 @@ let wantTemp = {
abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
name = "enterprise name",
description = "enterprise description"
name: "enterprise name",
description: "enterprise description"
}
enterpriseDeviceManager.activateAdmin(wantTemp, enterpriseInfo, enterpriseDeviceManager.AdminType.ADMIN_TYPE_NORMAL)
.then((result) => {
......@@ -461,8 +461,8 @@ let wantTemp = {
abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
name = "enterprise name",
description = "enterprise description"
name: "enterprise name",
description: "enterprise description"
}
enterpriseDeviceManager.setEnterpriseInfo(wantTemp, enterpriseInfo)
.then((result) => {
......@@ -503,8 +503,8 @@ let wantTemp = {
abilityName: "com.example.myapplication.MainAbility",
};
let enterpriseInfo = {
name = "enterprise name",
description = "enterprise description"
name: "enterprise name",
description: "enterprise description"
}
enterpriseDeviceManager.setEnterpriseInfo(wantTemp, enterpriseInfo)
.then((result) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册