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