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;