Showing
1 changed file
with
3 additions
and
2 deletions
| ... | ... | @@ -151,8 +151,9 @@ export function useCommandDelivery() { |
| 151 | 151 | |
| 152 | 152 | if (!firsetItem.value) { |
| 153 | 153 | const { createMessage } = useMessage() |
| 154 | - createMessage.warning('当前设备不在线') | |
| 155 | - return | |
| 154 | + const message = '当前设备不在线' | |
| 155 | + createMessage.warning(message) | |
| 156 | + throw Error(message) | |
| 156 | 157 | } |
| 157 | 158 | } |
| 158 | 159 | await sendApi({ way, deviceId: entityId, command: rpcCommand }) | ... | ... |