文档管理bug修改
This commit is contained in:
parent
f6e4553a70
commit
26f2312b53
@ -89,11 +89,16 @@ function gettreedata() {
|
||||
getNodesTree(treeForm.value).then((res: any) => {
|
||||
treedata.value = res.data
|
||||
treeloading.value = false
|
||||
pathid.value = treedata.value[0].id
|
||||
if( treedata.value[0]){
|
||||
pathid.value = treedata.value[0].id
|
||||
nextTick(() => {
|
||||
treeRef.value?.setCurrentKey(pathid.value);
|
||||
});
|
||||
getdata()
|
||||
}else{
|
||||
tableData.value.length = 0
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
const pathid = ref()
|
||||
|
Loading…
Reference in New Issue
Block a user