请参考import { common } from '@kit.AbilityKit'; @Entry @Component struct Index{ build(){ Column(){ Button("跳转到设置") .onClick( ()=>{ let context = getContext(this) as common.UIAbilityContext; context.startAbility({ bundleName: 'com.huawei.hmos.settings', abilityName: 'com.huawei.hmos.settings.MainAbility', uri: 'application_info_entry', parameters: { pushParams: "com.example.test" // 应用包名 } }); }) }.width('100%').height('100%') } }
请参考