完善scheme 测试

This commit is contained in:
DevWiki 2024-04-30 16:23:18 +08:00
parent 1bddf62724
commit 8b05328767

View File

@ -1,15 +1,25 @@
import { TitleBar } from '@devwiki/common_ui/Index';
import { common, Want } from '@kit.AbilityKit'; import { common, Want } from '@kit.AbilityKit';
@Component @Component
@Entry @Entry
export struct SchemePage { export struct SchemePage {
build() { build() {
Column() {
TitleBar({
title: 'SchemePage',
onLeftClicked: () => {
this.getUIContext().getRouter().back()
}
})
Button("Open").width(120).height(36).onClick(() => {
this.openScheme()
}).margin({ top: 48 })
}
} }
openHttp() { openScheme() {
let context = getContext(this) as common.UIAbilityContext; let context = getContext(this) as common.UIAbilityContext;
let wantInfo: Want = { let wantInfo: Want = {
uri: 'https://devwiki.net' uri: 'https://devwiki.net'