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 = () => {