From 876c06ef54188fcab7796552536587437a2f6072 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Tue, 14 Jan 2025 18:58:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=81=9C=E9=A1=B5=E9=9D=A2=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/test.vue | 7 ++++++- frontend/src/views/home/components/testPopup.vue | 14 +++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index 91ebabf..0583dbe 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -12,6 +12,12 @@ :icon="VideoPause" @click="emit('sendPause')">停止检测 + + + + + 暂停中 + @@ -425,7 +431,6 @@ watch(webMsgSend, function (newValue, oldValue) { break; case 'preStopTest': if(newValue.operateCode == 'stop'){ - tryHideFullScreenLoading() ElMessage.success('暂停成功') emit('update:testStatus', 'paused') handlePauseTest() diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index 8ac2715..4fb77e6 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -42,12 +42,12 @@ 初始化中 - - - - - - + + + + + 暂停中 + @@ -377,8 +377,8 @@ watch(ActiveStatue, function (newValue, oldValue) { const sendPause = () => { console.log('发起暂停请求') + ActiveStatue.value = 'paused_ing' pauseTest() - showFullScreenLoading() } const sendResume = () => { console.log('发起继续检测请求')