添加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

@@ -18,6 +18,14 @@ export struct WebPage {
onTitleBarRightClick(event: ClickEvent) {
this.webViewController?.refresh();
}
onBackPress(): boolean | void {
if (this.webViewController?.accessBackward()) {
this.webViewController?.backward();
return false;
}
return true;
}
build() {
Column() {