fix: 组态显示单位缺失修改

This commit is contained in:
dawnwinterLiu 2022-07-02 17:14:18 +08:00
parent dfc16e60e8
commit ca89e73a08
5 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ get_attrs(Type, ProductId, ClassName, Attrs, DeviceId, KonvatId, Shapeid, Identi
{ok, Text1} ->
get_konva_value(ProductId, Identifier1, Text1)
end,
NewAttrs = Attrs#{<<"id">> => dgiot_parse_id:get_shapeid(DeviceId, Id), <<"text">> => Text, <<"draggable">> => false},
NewAttrs = Attrs#{<<"id">> => dgiot_parse_id:get_shapeid(DeviceId, Id), <<"text">> => <<Text/binary, " ", Unit/binary>>, <<"draggable">> => false},
save(Type, NewAttrs),
X#{<<"attrs">> => NewAttrs}
end