webapp: Show limit only with 1 digit
This commit is contained in:
parent
e762abd18f
commit
07eb6472b5
@ -506,9 +506,9 @@ export default defineComponent({
|
|||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.maxPower = data[serial].max_power;
|
this.maxPower = data[serial].max_power;
|
||||||
this.currentLimit = data[serial].limit_relative;
|
this.currentLimit = Number((data[serial].limit_relative).toFixed(1));
|
||||||
if (this.maxPower > 0) {
|
if (this.maxPower > 0) {
|
||||||
this.currentLimitAbsolute = this.currentLimit * this.maxPower / 100;
|
this.currentLimitAbsolute = Number((this.currentLimit * this.maxPower / 100).toFixed(1));
|
||||||
}
|
}
|
||||||
this.successCommandLimit = data[serial].limit_set_status;
|
this.successCommandLimit = data[serial].limit_set_status;
|
||||||
this.limitSettingSerial = serial;
|
this.limitSettingSerial = serial;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user