|
@@ -153,6 +153,8 @@ const currentTestingProject = ref<any>();
|
|
|
const startToRunTest = async () => {
|
|
|
if (!checkStartEnable()) return;
|
|
|
|
|
|
+ wsClient.open();
|
|
|
+
|
|
|
let params = {
|
|
|
configList: testingMachines.value,
|
|
|
engineeringId: route.params.engineerId,
|
|
@@ -280,10 +282,6 @@ const wsClient = useWebSocket(import.meta.env.VITE_WEBSOCKET_URL as string, {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-onMounted(() => {
|
|
|
- wsClient.open();
|
|
|
-});
|
|
|
-
|
|
|
onBeforeUnmount(() => {
|
|
|
wsClient.close();
|
|
|
});
|