From 9268cd755b971eee8a53cabb5c511dad05a40e41 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Tue, 28 Oct 2025 13:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/components/channelPairing.vue | 1 - frontend/src/views/home/components/comparePreTest.vue | 1 + frontend/src/views/home/components/compareTestPopup.vue | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/home/components/channelPairing.vue b/frontend/src/views/home/components/channelPairing.vue index e9bee19..f43c904 100644 --- a/frontend/src/views/home/components/channelPairing.vue +++ b/frontend/src/views/home/components/channelPairing.vue @@ -214,7 +214,6 @@ const onPaneReady = () => { // 提取公共的label渲染函数 const createLabel = (device:any, Key: number) => { - console.log('-=-=',device) return h( 'div', { diff --git a/frontend/src/views/home/components/comparePreTest.vue b/frontend/src/views/home/components/comparePreTest.vue index 5114f490..f155a1e 100644 --- a/frontend/src/views/home/components/comparePreTest.vue +++ b/frontend/src/views/home/components/comparePreTest.vue @@ -563,6 +563,7 @@ watch(ts, function (newValue, oldValue) { // 定义一个初始化参数的方法 function initializeParameters() { + collapseActiveName.value = '1' activeIndex.value = 0 step1.value = 'wait' step2.value = 'wait' diff --git a/frontend/src/views/home/components/compareTestPopup.vue b/frontend/src/views/home/components/compareTestPopup.vue index a3c0dfa..e2639de 100644 --- a/frontend/src/views/home/components/compareTestPopup.vue +++ b/frontend/src/views/home/components/compareTestPopup.vue @@ -323,7 +323,8 @@ const handleSubmitAgain = async () => { } stepsTotalNum.value = count + 1 - // 通知子组件清空并重新初始化 + // 等待组件渲染完成 + await nextTick() if (preTestRef.value) { preTestRef.value.initializeParameters() } @@ -342,7 +343,6 @@ const handleSubmitAgain = async () => { standardDevIds: standardDevIds.value, pairs: pairs.value, testItemList: [checkStore.selectTestItems.preTest, false, checkStore.selectTestItems.test], - userId: userStore.userInfo.id }) @@ -479,7 +479,7 @@ watch(ActiveStatue, function (newValue, oldValue) { nextStep() // 实现自动点击,进入下一个测试内容 //handleSubmitFast() } - console.log('stepsActiveIndex.value', stepsActiveIndex.value) + }) const handleQuit = () => {