改为页面跳转

This commit is contained in:
2024-04-02 21:30:05 +08:00
parent 4d58059063
commit 68a08d785e
6 changed files with 116 additions and 54 deletions

View File

@@ -3,7 +3,7 @@
* H5 调用 native的函数
*/
export interface WebScriptCallback {
getCount(): number;
getNativePageFileName(): string;
}
/**

View File

@@ -51,8 +51,8 @@ export class WebViewController implements WebScriptCallback, WebScriptFunction,
return this.webviewController?.getUrl() ?? "";
}
getCount(): number {
return 0;
getNativePageFileName(): string {
return "";
}
alert(message: string): void {