From 1c5d5c78c34e78f7f20cc0eff5d447f05043434c Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 25 Mar 2025 16:40:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96UserInfo=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E4=BD=BF=E7=94=A8Reflect=E8=A7=A3=E7=A0=81li?= =?UTF-8?q?stData=E4=B8=AD=E7=9A=84URI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/UserInfo.ets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index 2c76afa4..76e6aee9 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -711,10 +711,12 @@ struct UserInfo { this.startExam = true } listData.id = index.toString() - // TODO 需要修改 // for (let i in listData) { // listData[i] = decodeURI(listData[i]) // } + Object.keys(listData).forEach((key) => { + Reflect.set(listData, key, decodeURI(Reflect.get(listData, key))); + }); if (this.systemParam.Param828Str == '1' || this.systemParam.Param828Str == '2') { // listData.ksy2=listData.ksy1; listData.ksy2 = this.examinerLoginInfo.kgxm