From b14a961c1ae8c8240e91513b843c10a01a70c332 Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Wed, 26 Feb 2025 11:13:28 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/home/components/testPopup.vue | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index 217cff7..b64443e 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -149,7 +149,6 @@ const initOperate = () => {
const open = (title: string) => {
initOperate()
-
dialogTitle.value = title;
dialogVisible.value = true;
@@ -290,7 +289,7 @@ watch(ActiveStatue, function (newValue, oldValue) {
// nextStepText.value = '结束测试'
nextStepText.value = '暂停超时'
}
- if (newValue === 'success' && nextStepText.value === '下一步') {
+ if (newValue === 'success' && stepsActiveIndex.value < stepsTotalNum.value - 1) {
nextStep() // 实现自动点击,进入下一个测试内容
handleSubmit()
}
From 4b3991099ac6c232913f6a129594e0b7def3fee4 Mon Sep 17 00:00:00 2001
From: caozehui <2427765068@qq.com>
Date: Wed, 26 Feb 2025 11:25:20 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/views/home/components/testPopup.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue
index b64443e..71dd31d 100644
--- a/frontend/src/views/home/components/testPopup.vue
+++ b/frontend/src/views/home/components/testPopup.vue
@@ -23,7 +23,7 @@
跳过
开始检测
@@ -276,15 +276,15 @@ watch(ActiveStatue, function (newValue, oldValue) {
stepsActiveIndex.value += 2
nextStepText.value = '检测完成'
}
- if (newValue === 'test_init_fail' ) {
+ if (newValue === 'test_init_fail') {
stepsActiveIndex.value += 2
nextStepText.value = '初始化失败'
}
- if (newValue === 'connect_timeout' ) {
+ if (newValue === 'connect_timeout') {
stepsActiveIndex.value += 2
nextStepText.value = '连接超时'
}
- if (newValue === 'pause_timeout' ) {
+ if (newValue === 'pause_timeout') {
stepsActiveIndex.value += 2
// nextStepText.value = '结束测试'
nextStepText.value = '暂停超时'