This commit is contained in:
yanran200730
2022-01-18 17:34:34 +08:00
parent a7ab45c070
commit 6a53c29da5
3 changed files with 6 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ export default {
this.treeObj.treeList = res.data;
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(res.data[0].id)
res.data.length && this.$refs.tree.setCurrentKey(res.data[0].id)
})
}
})