diff --git a/src/components/Device/components/WirelessGroup/index.vue b/src/components/Device/components/WirelessGroup/index.vue
index 2d0b201..1f7b4bf 100644
--- a/src/components/Device/components/WirelessGroup/index.vue
+++ b/src/components/Device/components/WirelessGroup/index.vue
@@ -56,15 +56,27 @@
>
-
- {{ $t('device.wireless.connect.name') }}
-
+
+
+ {{ $t('device.wireless.connect.name') }}
+
+
+
+ {{ $t('common.cancel') }}
+
+
@@ -209,6 +221,10 @@ export default {
this.$message.warning(this.$t('device.wireless.connect.batch.error'))
},
+ handleUnConnect() {
+ this.loading = false
+ },
+
async handleConnect(params = this.formData) {
if (!params.host) {
this.$message.warning(
@@ -227,7 +243,9 @@ export default {
this.handleSave(params)
}
catch (error) {
- this.handleError(error?.message || error?.cause?.message || error)
+ if (this.loading) {
+ this.handleError(error?.message || error?.cause?.message || error)
+ }
}
this.loading = false