微调
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
@@ -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') // 触发事件
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user