From 15faac8079d24d48fc0fd1c0e3d11aa994d9f47b Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Wed, 26 Feb 2025 10:05:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E6=A3=80=E6=B5=8B-=E7=A7=BB?=
=?UTF-8?q?=E9=99=A4=E9=87=8D=E6=96=B0=E6=A3=80=E6=B5=8B=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/home/components/test.vue | 21 ++++++++++---------
.../src/views/home/components/testPopup.vue | 16 +++++++-------
2 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue
index f64c964..08534f9 100644
--- a/frontend/src/views/home/components/test.vue
+++ b/frontend/src/views/home/components/test.vue
@@ -48,12 +48,12 @@
- 重新检测
-
+
+
+
+
+
+
检测完成
@@ -324,9 +324,9 @@ watch(testStatus, function (newValue, oldValue) {
showTestLog()
- if (oldValue == 'error') {
- handleReCheck()
- }
+ // if (oldValue == 'error') {
+ // handleReCheck()
+ // }
emit('update:testStatus', 'test_init')
//startTimer() // todo 可移除
startData.value = new Date();
@@ -427,7 +427,8 @@ watch(webMsgSend, function (newValue, oldValue) {
type: 'error',
log: `${new Date().toLocaleString()}:存在已经初始化步骤,执行自动关闭,请重新发起检测!`
})
- emit('update:testStatus', 'test_recheck')
+ // emit('update:testStatus', 'test_recheck')
+ emit('update:testStatus', 'test_init_fail')
} else {
switch (newValue.requestId) {
case 'server_error':
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index e0e9cbd..9cbf2fd 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -35,7 +35,7 @@
检测中
继续检测
- 重新检测
+
@@ -308,12 +308,14 @@ const handleSubmit = () => {
} else if (TestStatus.value == 'paused') {
// 发送继续指令
sendResume()
- } else if (TestStatus.value == 'test_recheck') {
- // 发送重新检测指令
- sendReCheck()
-
-
- }else if (TestStatus.value == 'success') {
+ } else
+ // if (TestStatus.value == 'test_recheck') {
+ // // 发送重新检测指令
+ // sendReCheck()
+ //
+ //
+ // }else
+ if (TestStatus.value == 'success') {
emit('quitClicked'); // 触发事件
}
break;