diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 40076077bd258dab549dbcb46e16a7137961c107..3f20aa7827955c53a23e9567609445d7dcecb6d5 100644 --- a/en/application-dev/reference/apis/js-apis-router.md +++ b/en/application-dev/reference/apis/js-apis-router.md @@ -162,7 +162,7 @@ Returns to the previous page or a specified page. // Return to the detail page through router.back(). export default { backToDetail() { - router.back({uri:'pages/detail/detail'}); + router.back({url:'pages/detail/detail'}); } } ``` @@ -334,7 +334,7 @@ Obtains the parameters passed from the page that initiates redirection to the cu // detail page export default { onInit() { - console.info('showData1:' + router.getParams().data1); + console.info('showData1:' + router.getParams()[data1]); } } ```