diff --git a/frontend/src/views/home/components/testPopup.vue b/frontend/src/views/home/components/testPopup.vue index 9ff209a..0612733 100644 --- a/frontend/src/views/home/components/testPopup.vue +++ b/frontend/src/views/home/components/testPopup.vue @@ -23,7 +23,7 @@ 跳过 开始检测 @@ -149,7 +149,6 @@ const initOperate = () => { const open = (title: string) => { initOperate() - dialogTitle.value = title; dialogVisible.value = true; @@ -277,20 +276,20 @@ 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 = '暂停超时' } - if (newValue === 'success' && nextStepText.value === '下一步') { + if (newValue === 'success' && stepsActiveIndex.value < stepsTotalNum.value - 1) { nextStep() // 实现自动点击,进入下一个测试内容 handleSubmit() }