From ebdb7f4e8810fa13d546f61a4ead405aee6da217 Mon Sep 17 00:00:00 2001 From: hezhengyi Date: Thu, 29 Feb 2024 19:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9flutter=5Fembedding=E4=B8=AD?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E9=81=93=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hezhengyi --- .../src/main/ets/plugin/common/MethodCall.ets | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets index 2482962862..12920e4945 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets @@ -33,17 +33,8 @@ export default class MethodCall { args: ESObject; constructor(method: string, args: ESObject) { - this.method = method - if (args instanceof Map || args instanceof HashMap || args instanceof TreeMap - || args instanceof LightWeightMap ) { - let obj: ESObject = {}; - args.forEach((value: ESObject, key: ESObject)=>{ - obj[key] = value; - }) - this.args = obj; - }else { - this.args = args; - } + this.method = method; + this.args = args; } argument(key: string): ESObject { -- Gitee