From 579f0511b13316fbaf5287ce02daa42f0f7d1365 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Sun, 08 Oct 2023 16:51:43 +0800
Subject: [PATCH] fix:接口修改

---
 src/views/deviceDetail/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/deviceDetail/index.vue b/src/views/deviceDetail/index.vue
index 1ffb0e9..2883ef5 100644
--- a/src/views/deviceDetail/index.vue
+++ b/src/views/deviceDetail/index.vue
@@ -719,9 +719,9 @@
         // socketUrl = 'http://192.168.0.11:8081/singleDevice/' + this.macName
       }
       // ������http���WS
-      console.log('socketUrl', socketUrl, this.macNamel)
-      socketUrl = socketUrl.replace('https', 'ws').replace('http', 'ws')
 
+      socketUrl = socketUrl.replace('https', 'wss').replace('http', 'ws')
+      console.log('socketUrl', socketUrl)
       this.ws = new WebSocket(socketUrl)
 
       this.ws.onopen = function() {

--
Gitblit v1.8.0