diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 3f20aa7827955c53a23e9567609445d7dcecb6d5..3db58b1c88bc84c8201a377df426e215f5837e77 100644 --- a/en/application-dev/reference/apis/js-apis-router.md +++ b/en/application-dev/reference/apis/js-apis-router.md @@ -263,12 +263,6 @@ Enables the display of a confirm dialog box before returning to the previous pag enableAlertBeforeBackPage() { router.enableAlertBeforeBackPage({ message: 'Message Info', - success: function() { - console.log('success'); - }, - fail: function() { - console.log('fail'); - }, }); } } @@ -434,4 +428,5 @@ Describes the page routing options. > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** + > > The page routing stack supports a maximum of 32 pages. diff --git a/en/application-dev/reference/apis/js-apis-system-router.md b/en/application-dev/reference/apis/js-apis-system-router.md index 0f1f932efe54af1337ce19354d19343b6f637687..c94547dba319f8660ceea73e5f7a5ecfb79fb3b4 100644 --- a/en/application-dev/reference/apis/js-apis-system-router.md +++ b/en/application-dev/reference/apis/js-apis-system-router.md @@ -66,6 +66,7 @@ export default { ``` > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> > The page routing stack supports a maximum of 32 pages. @@ -182,6 +183,7 @@ export default { ``` > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> > In the example, the **uri** field indicates the page route, which is specified by the **pages** list in the **config.json** file. ## router.getParams @@ -375,8 +377,8 @@ Defines the **EnableAlertBeforeBackPage** parameters. | Name | Type | Mandatory | Description | | -------- | ------------------------ | ---- | ------------------------- | | message | string | Yes | Content displayed in the confirm dialog box. | -| success | (errMsg: string) => void | No | Called when a dialog box is displayed. **errMsg** indicates the returned information. | -| fail | (errMsg: string) => void | No | Called when the API fails to be called. **errMsg** indicates the returned information.| +| success | (errMsg: string) => void | No | Called when the **OK** button in the confirm dialog box is clicked. **errMsg** indicates the returned information. | +| cancel | (errMsg: string) => void | No | Called when the **Cancel** button in the confirm dialog box is clicked. **errMsg** indicates the returned information. | | complete | () => void | No | Called when the API call is complete. | ## DisableAlertBeforeBackPageOptions6+ @@ -387,8 +389,8 @@ Define the **DisableAlertBeforeBackPage** parameters. | Name | Type | Mandatory | Description | | -------- | ------------------------ | ---- | ------------------------- | -| success | (errMsg: string) => void | No | Called when a dialog box is displayed. **errMsg** indicates the returned information. | -| fail | (errMsg: string) => void | No | Called when the API fails to be called. **errMsg** indicates the returned information.| +| success | (errMsg: string) => void | No | Called when the dialog box is closed. **errMsg** indicates the returned information. | +| cancel | (errMsg: string) => void | No | Called when the dialog box fails to be closed. **errMsg** indicates the returned information. | | complete | () => void | No | Called when the API call is complete. | ## ParamsInterface