From 01c4a27dd3912176ab8ed6d839a48e0aa13e73df Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Thu, 3 Apr 2025 15:30:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20warnFlagTip=20?= =?UTF-8?q?=E7=9A=84=E8=AE=BF=E9=97=AE=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E4=BB=A3=E7=A0=81=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/CarCheck.ets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/entry/src/main/ets/pages/CarCheck.ets b/entry/src/main/ets/pages/CarCheck.ets index 85ee7913..c8c8afee 100644 --- a/entry/src/main/ets/pages/CarCheck.ets +++ b/entry/src/main/ets/pages/CarCheck.ets @@ -180,7 +180,7 @@ struct Index { getPLCInfo() { const that = this - ObtainSignalData.getData((msg)=>{ + ObtainSignalData.getData((msg) => { if (!this.breakFlag) { return } @@ -220,7 +220,7 @@ struct Index { return } - if (this.warnFlagTip[that.index].length > 1) { + if (this.warnFlagTip.get(that.index).length > 1) { if (that.stachValue[that.index] != that.signArr[that.realNum[that.index]]) { that.warnFlag[that.index] = '2' } @@ -344,15 +344,15 @@ struct Index { this.passArray[this.index] = true this.passArray = JSON.parse(JSON.stringify(this.passArray)) this.subFlag = true - let name: string = this.warnFlagTip[this.index][0] - if (this.warnFlagTip[this.index].length == 1) { + let name: string = this.warnFlagTip.get(this.index)[0] + if (this.warnFlagTip.get(this.index).length == 1) { this.vocObj.playAudio({ type: 1, name, }) - } else if (this.warnFlagTip[this.index].length == 2) { + } else if (this.warnFlagTip.get(this.index).length == 2) { if (this.signArr[this.realNum[this.index]] && this.signArr[this.realNum[this.index]] != '0') { - name = this.warnFlagTip[this.index][1] + name = this.warnFlagTip.get(this.index)[1] this.vocObj.playAudio({ type: 1, name,