From f2be66962735bdaa0b4ff3babf1a0a33d76a831d Mon Sep 17 00:00:00 2001 From: huye Date: Tue, 8 Mar 2022 14:37:49 +0800 Subject: [PATCH] web api onBeforeUnload Signed-off-by: huye --- api/@internal/component/ets/web.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 0d3bc0180c..3948a50f22 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -720,7 +720,7 @@ declare class WebAttribute extends CommonMethod { * @param callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload. * @since 8 */ - onBeforeUnload(callback: (event?: { message: string; result: JsResult }) => boolean): WebAttribute; + onBeforeUnload(callback: (event?: { url: string; message: string; result: JsResult }) => boolean): WebAttribute; /** * Triggered when the web page wants to display a JavaScript confirm() dialog. -- Gitee