Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -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 | } | ... | ... |