Commit 789a64847b4ddfd2a2ec1b19935cf158ae0c667b

Authored by fengwotao
1 parent 4488b4c2

pref: 设备显示别名或名字

... ... @@ -229,7 +229,7 @@
229 229 deviceProfileId,
230 230 });
231 231 entityOptions.value = res.map((item) => ({
232   - label: item.name,
  232 + label: item.alias || item.name,
233 233 value: item.tbDeviceId,
234 234 }));
235 235 };
... ...
... ... @@ -221,7 +221,7 @@
221 221 deviceProfileId,
222 222 });
223 223 entityOptions.value = res.map((item) => ({
224   - label: item.name,
  224 + label: item.alias || item.name,
225 225 value: item.tbDeviceId,
226 226 }));
227 227 };
... ...