diff --git a/src/components/LanServiceChecker.vue b/src/components/LanServiceChecker.vue index b8950574..16431e53 100644 --- a/src/components/LanServiceChecker.vue +++ b/src/components/LanServiceChecker.vue @@ -20,7 +20,7 @@ export default { methods: { syncValue(val) { this.loading = false - this.$emit('value', val) + this.$emit('update:value', val) }, /**局域网检测*/ lanServiceCheck() { @@ -30,7 +30,7 @@ export default { const controller = new AbortController(); const timeoutId = setTimeout(() => { controller.abort(); - this.syncValue(false); + this.syncValue(true); }, 1000); // 拼接随机参数(时间戳+随机数,确保URL唯一,防止缓存) @@ -43,7 +43,7 @@ export default { }) .then(response => { clearTimeout(timeoutId); - response.ok ? this.syncValue(true) : this.syncValue(false); + this.syncValue(!response.ok) }) .catch(error => { clearTimeout(timeoutId); @@ -58,14 +58,12 @@ export default { diff --git a/src/views/portal/case/AICall.vue b/src/views/portal/case/AICall.vue index 31ba0428..57a208c4 100644 --- a/src/views/portal/case/AICall.vue +++ b/src/views/portal/case/AICall.vue @@ -37,11 +37,11 @@ -
- +
+
-
+