From da525d3dcf1f27d25e67d2cfa3e2d12b167018b2 Mon Sep 17 00:00:00 2001 From: binbin0314 Date: Sat, 5 Jun 2021 16:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9D=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Panel/Panel.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Panel/Panel.vue b/src/components/Panel/Panel.vue index 966b821..2c4147e 100644 --- a/src/components/Panel/Panel.vue +++ b/src/components/Panel/Panel.vue @@ -65,11 +65,11 @@ export default { this.info = '呼叫'; this.setStartMessages(false); } else { - if (val.step && val.step - 0 > (this.percent * 13) / 100 && val.step - 0 <= 13) { + if ((val.step || val.step === '0') && val.step - 0 >= (this.percent * 13) / 100 && val.step - 0 <= 13) { console.log(val.step - 0, this.percent); - this.percent = ((val.step - 0) * 100) / 12; + this.percent = ((val.step - 0 + 1) * 100) / 12; this.percentA = (this.percent * 100) / 120 + '%'; - this.info = this.lists[val.step - 0]; + this.info = this.lists[val.step - 0 + 1]; } } },