Showing
1 changed file
with
3 additions
and
1 deletions
@@ -145,7 +145,9 @@ | @@ -145,7 +145,9 @@ | ||
145 | createMessage.warning(`属性下发值精确到两位小数,缩放因子是${unref(zoomFactorValue)}`); | 145 | createMessage.warning(`属性下发值精确到两位小数,缩放因子是${unref(zoomFactorValue)}`); |
146 | return; | 146 | return; |
147 | } | 147 | } |
148 | - const newValue = getArray(SingleToHex(unref(isShowMultiply) ? values : oldValue)); | 148 | + |
149 | + const newValue = | ||
150 | + values == 0 ? [0, 0] : getArray(SingleToHex(unref(isShowMultiply) ? values : oldValue)); | ||
149 | modBUSForm.value.registerValues = newValue; | 151 | modBUSForm.value.registerValues = newValue; |
150 | modBUSForm.value.registerNumber = 2; | 152 | modBUSForm.value.registerNumber = 2; |
151 | modBUSForm.value.method = '10'; | 153 | modBUSForm.value.method = '10'; |