This commit is contained in:
sjl
2025-03-12 11:17:12 +08:00
parent 05948aebf5
commit d7cfcc7855
3 changed files with 20 additions and 10 deletions

View File

@@ -287,9 +287,15 @@ const second = ref(0)
const emit = defineEmits(['update:activeName','update:activeIndex','update:startDisabeld','update:pauseDisabled'])
watch(()=>props.formControl.scriptId,()=>{
watch(()=>props.formControl.scriptId,async ()=>{
if(props.formControl.scriptId!=''){
getTree()
nextTick(async () => {
await getTree()
console.log('props.formControl.scriptId')
treeRef.value.checkTree()
})
}
})
@@ -357,8 +363,8 @@ const getTree = () => {
tabChange()
}
})
treeRef.value.checkTree()
//console.log('获取树')
}