重新检测

This commit is contained in:
sjl
2025-10-28 13:52:22 +08:00
parent a69b7a17a4
commit 9268cd755b
3 changed files with 4 additions and 4 deletions

View File

@@ -214,7 +214,6 @@ const onPaneReady = () => {
// 提取公共的label渲染函数
const createLabel = (device:any, Key: number) => {
console.log('-=-=',device)
return h(
'div',
{

View File

@@ -563,6 +563,7 @@ watch(ts, function (newValue, oldValue) {
// 定义一个初始化参数的方法
function initializeParameters() {
collapseActiveName.value = '1'
activeIndex.value = 0
step1.value = 'wait'
step2.value = 'wait'

View File

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