From f1e419ac3fbf77ddf26a2a8a35768508ec2ed01d Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Fri, 18 Mar 2022 15:38:01 +0800 Subject: [PATCH] modiry ohos.route back interface Signed-off-by: yaoyuchi --- api/@ohos.router.d.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/api/@ohos.router.d.ts b/api/@ohos.router.d.ts index 74a6234d48..92b1ec6bad 100644 --- a/api/@ohos.router.d.ts +++ b/api/@ohos.router.d.ts @@ -49,20 +49,6 @@ declare namespace router { params?: Object; } - /** - * @since 8 - */ - interface BackRouterOptions { - - /** - * Returns to the page of the specified path. - * If the page with the specified path does not exist in the page stack, router.back() is called by default. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 8 - */ - path?: string; - } - /** * @since 8 */ @@ -119,7 +105,7 @@ declare namespace router { * @param options Options. * @since 8 */ - function back(options: BackRouterOptions):void; + function back(options?: RouterOptions ):void; /** * Clears all historical pages and retains only the current page at the top of the stack.