Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -145,7 +145,9 @@ |
145 | 145 | createMessage.warning(`属性下发值精确到两位小数,缩放因子是${unref(zoomFactorValue)}`); |
146 | 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 | 151 | modBUSForm.value.registerValues = newValue; |
150 | 152 | modBUSForm.value.registerNumber = 2; |
151 | 153 | modBUSForm.value.method = '10'; | ... | ... |