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,