From cc61b93439fee0ad4721a982b84241268f026c4d Mon Sep 17 00:00:00 2001 From: huye Date: Fri, 11 Mar 2022 09:35:21 +0800 Subject: [PATCH] support resource format for LoadUrl. 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 35531a512c..863aadb1f7 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -470,7 +470,7 @@ declare class WebController { * Load the given URL * @since 8 */ - loadUrl(options: { url: string; headers?: Array<{ key: string; value: string }> }); + loadUrl(options: { url: string | Resource; headers?: Array<{ key: string; value: string }> }); /** * refreshes the current URL. -- Gitee