HarmonyOS NEXT API12 如何跳转到系统设置页面
HarmonyOS NEXT API12 如何跳转到系统设置页面呢?代码如下
let wantInfo: Want = {
bundleName: 'com.huawei.hmos.settings',
abilityName: 'com.huawei.hmos.settings.MainAbility',
}
context.startAbility(wantInfo).then(() => {
console.log('location open setting page')
}).catch((err:object) => {
console.log('location open setting page failed')
})