From da34db9e0e5c62c5d78f1808e7dca09b3327e3e6 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Wed, 3 Aug 2022 19:14:48 +0800 Subject: [PATCH] update docs against 7280 Signed-off-by: wusongqing --- en/application-dev/reference/apis/js-apis-router.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 40076077bd..3f20aa7827 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]); } } ``` -- GitLab