This commit is contained in:
sjl
2025-03-14 12:27:04 +08:00
parent c17efbf9f6
commit 7caa4a5303
2 changed files with 4 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ import { getCoefficientCheck } from '@/api/home/channelsTest/index'
import type { ChannelsTest } from '@/api/home/interface/channelsTest'; import type { ChannelsTest } from '@/api/home/interface/channelsTest';
import type { Plan } from '@/api/plan/interface'; import type { Plan } from '@/api/plan/interface';
import { fa } from 'element-plus/es/locale'; import { fa } from 'element-plus/es/locale';
import socketClient from '@/utils/webSocketClient';
const activeIndex = ref(0) const activeIndex = ref(0)
const activeTotalNum = ref(4) const activeTotalNum = ref(4)
@@ -727,12 +727,10 @@ const updateErrorState = (index: number, hasError: boolean) => {
(e: 'submitClicked', callback: (resolve: (value: boolean) => void) => void): void; (e: 'submitClicked', callback: (resolve: (value: boolean) => void) => void): void;
}>(); }>();
const dataSocket = reactive({
socketServe: socketClient.Instance,
});
const handleCancel=() => { const handleCancel=() => {
dataSocket.socketServe.closeWs() //dataSocket.socketServe.closeWs()
// 清空 name, channel, total // 清空 name, channel, total
name.value = []; name.value = [];
channel.value = []; channel.value = [];

View File

@@ -1140,7 +1140,7 @@ onBeforeMount(async () => {
const handleQuitClicked = () => { const handleQuitClicked = () => {
//console.log('handleQuitClicked') //console.log('handleQuitClicked')
//dataSocket.socketServe.closeWs() dataSocket.socketServe.closeWs()
emit('batchGenerateClicked') // 触发事件 emit('batchGenerateClicked') // 触发事件
} }