From c17efbf9f6e313a70569c328bd4d58dee7512583 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 14 Mar 2025 12:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/channelsTest.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue index 9bd6d0e..ab56bcd 100644 --- a/frontend/src/views/home/components/channelsTest.vue +++ b/frontend/src/views/home/components/channelsTest.vue @@ -98,6 +98,8 @@ import { getCoefficientCheck } from '@/api/home/channelsTest/index' import type { ChannelsTest } from '@/api/home/interface/channelsTest'; import type { Plan } from '@/api/plan/interface'; import { fa } from 'element-plus/es/locale'; +import socketClient from '@/utils/webSocketClient'; + const activeIndex = ref(0) const activeTotalNum = ref(4) const qualified = ref(0) @@ -136,7 +138,6 @@ const props = defineProps({ default: () => ({}) } }) - const tableDataMap = new Map>([]); const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish'); const webMsgSend = toRef(props, 'webMsgSend'); @@ -726,7 +727,12 @@ const updateErrorState = (index: number, hasError: boolean) => { (e: 'submitClicked', callback: (resolve: (value: boolean) => void) => void): void; }>(); + const dataSocket = reactive({ + socketServe: socketClient.Instance, +}); const handleCancel=() => { + + dataSocket.socketServe.closeWs() // 清空 name, channel, total name.value = []; channel.value = [];