Commit 3a59108a4e2da9016da956e99829e8d3890b5dfc

Authored by fengtao
1 parent c962caf4

fix:修改设备列表取消分配提示信息为后端返回的信息

... ... @@ -270,11 +270,11 @@
270 270 try {
271 271 // 该设备是否正在被场景联动使用中?
272 272 const isEnabled = await checkDeviceOccupied(record.id);
273   - if (!isEnabled) {
  273 + if (!isEnabled.data) {
  274 + createMessage.warn(`${isEnabled.message}`);
  275 + } else {
274 276 await cancelDispatchCustomer(record);
275 277 handleReload();
276   - } else {
277   - createMessage.warn('该设备正在使用中~');
278 278 }
279 279 } catch {}
280 280 }
... ...