mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-20 00:53:32 +00:00
modiry ohos.route back interface
Signed-off-by: yaoyuchi <yaoyuchi@huawei.com>
This commit is contained in:
parent
c113bbceea
commit
f1e419ac3f
16
api/@ohos.router.d.ts
vendored
16
api/@ohos.router.d.ts
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user