From 7caa4a53039b6803a3f3da8b97557e8ed42737aa Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 14 Mar 2025 12:27:04 +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 +++----- frontend/src/views/home/components/table.vue | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/home/components/channelsTest.vue b/frontend/src/views/home/components/channelsTest.vue index ab56bcd..45a76eb 100644 --- a/frontend/src/views/home/components/channelsTest.vue +++ b/frontend/src/views/home/components/channelsTest.vue @@ -98,7 +98,7 @@ 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) @@ -727,12 +727,10 @@ 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() + //dataSocket.socketServe.closeWs() // 清空 name, channel, total name.value = []; channel.value = []; diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index a7dd572..a99eb10 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -1140,7 +1140,7 @@ onBeforeMount(async () => { const handleQuitClicked = () => { //console.log('handleQuitClicked') - //dataSocket.socketServe.closeWs() + dataSocket.socketServe.closeWs() emit('batchGenerateClicked') // 触发事件 }