微调
This commit is contained in:
@@ -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('获取树')
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user