中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
如果通过代码打开证书管理器页面?
微信扫码分享
import { common, Want } from '@kit.AbilityKit' import { BusinessError } from '@kit.BasicServicesKit' /** * 打开证书与凭证页面 */ @Entry @Component struct Index { build() { Column() { Button("aaaaa").onClick(() => { let wantlnfo: Want = { deviceId: '', bundleName: "com.ohos.certmanager", abilityName: 'MainAbility' } let context = getContext(this) as common.UIAbilityContext context.startAbility(wantlnfo).then(() => { console.log("============success") }).catch((err: BusinessError) => { console.log("==========err:" + err.message) }) }) }.width("100%") .height("100%") } }