modiry ohos.route back interface

Signed-off-by: yaoyuchi <yaoyuchi@huawei.com>
This commit is contained in:
yaoyuchi 2022-03-18 15:38:01 +08:00
parent c113bbceea
commit f1e419ac3f

16
api/@ohos.router.d.ts vendored
View File

@ -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.