From 1286f12364b27d59ebfdecca4f1eb0695262b7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=88=E6=A0=AA=E5=BE=85=E5=85=94?= Date: Fri, 23 Aug 2024 07:55:11 +0000 Subject: [PATCH] =?UTF-8?q?param=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 守株待兔 --- RouterApi/src/main/ets/api/RouterMgr.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RouterApi/src/main/ets/api/RouterMgr.ets b/RouterApi/src/main/ets/api/RouterMgr.ets index 720cc9b..b3bff65 100644 --- a/RouterApi/src/main/ets/api/RouterMgr.ets +++ b/RouterApi/src/main/ets/api/RouterMgr.ets @@ -323,7 +323,8 @@ export class RouterMgr { } if (name) { try { - return this.getParamByName(name)[0] + let params = this.getParamByName(name) + return params[params.length-1] } catch (e) { LogUtil.error('err: ', e) return null -- Gitee