From 5cca2bc490c7130433e5083b4029d8bd27befa0f Mon Sep 17 00:00:00 2001 From: huye Date: Tue, 8 Mar 2022 23:04:47 +0800 Subject: [PATCH] web api of beforeupload. 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 eba8d735d8..8d7f348399 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -735,7 +735,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