From 2dc78446889a82274a0fc40cca880b575fc73006 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Wed, 18 Sep 2024 19:13:44 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E5=88=87=E6=8D=A2bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/tunnel/index.vue | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/tunnel/index.vue b/src/views/tunnel/index.vue
index fbf3329..7015df3 100644
--- a/src/views/tunnel/index.vue
+++ b/src/views/tunnel/index.vue
@@ -125,7 +125,7 @@
-
{{initialIndex}}
+
@@ -588,7 +588,8 @@ const getTunnel = (id) => {
}
});
} else {
- tunnelList.value = res.data;
+ console.info("🚀 ~method: tunnelList.value -----", tunnelList.value)
+ // tunnelList.value = res.data;
getScreenInfo(res.data[0]?.value);
}
}
@@ -596,16 +597,18 @@ const getTunnel = (id) => {
});
};
const changeTunnel = (e) => {
- console.info("🚀 ~method:'socket' -----", socket)
+ // console.info("🚀 ~method:'tunnelList.value' -----", tunnelList.value)
+ // console.info("🚀 ~method:'changeTunnel' -----", e)
if(socket){
socket.close()
}
let newObj = {}
tunnelList.value.forEach((item, index) => {
- if (index === e) {
+ if (index == e) {
newObj = item;
}
});
+ // console.info("🚀 ~method:changeTunnel -----", newObj)
showFan.value = false;
showBadLoading.value = 0;
showWindLoading.value = 0;