添加scheme 调用

This commit is contained in:
2024-04-30 15:37:39 +08:00
parent 84272111c7
commit c027ac9087
5 changed files with 55 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
import { common, Want } from '@kit.AbilityKit';
@Component
@Entry
export struct SchemePage {
build() {
}
openHttp() {
let context = getContext(this) as common.UIAbilityContext;
let wantInfo: Want = {
uri: 'https://devwiki.net'
}
context.startAbility(wantInfo);
}
}