From 5666e01ae005d425feb695c4e7a50f909d032545 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 25 Feb 2025 13:47:33 +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 --- .../src/views/home/components/testPopup.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index 1d8ccf2..b1faac7 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -73,7 +73,7 @@ import test from './test.vue' import {Device} from '@/api/device/interface/device'; import socketClient from '@/utils/webSocketClient'; import {useCheckStore} from "@/stores/modules/check"; -import {pauseTest, startPreTest} from '@/api/socket/socket' +import {pauseTest, resumeTest, startPreTest} from '@/api/socket/socket' const checkStore = useCheckStore(); const nextStepText = ref('下一步'); @@ -310,16 +310,16 @@ const sendPause = () => { const sendResume = () => { console.log('发起继续检测请求') - // resumeTest({ - // userPageId: "cdf", - // devIds: checkStore.devices.map((item) => item.deviceId), - // planId: checkStore.plan.id, - // operateType: '2' // '1'为预检测、‘2‘为正式检测 - // }).then(res => { - // Object.assign(webMsgSend.value, { - // requestId: 'Resume_Success' - // }) - // }) + resumeTest({ + userPageId: "cdf", + devIds: checkStore.devices.map((item) => item.deviceId), + planId: checkStore.plan.id, + operateType: '2' // '1'为预检测、‘2‘为正式检测 + }).then(res => { + Object.assign(webMsgSend.value, { + requestId: 'Resume_Success' + }) + }) Object.assign(webMsgSend.value, { requestId: 'Resume_Success' })