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