diff --git a/test-ui/src/components/FolderPage/index.vue b/test-ui/src/components/FolderPage/index.vue index 6e5aa66..b3bd0a0 100644 --- a/test-ui/src/components/FolderPage/index.vue +++ b/test-ui/src/components/FolderPage/index.vue @@ -2,7 +2,7 @@
- + @@ -102,8 +102,10 @@ export default { }); if (res.data && res.data.length > 0) { this.groupId = res.data[0].id; - this.$refs.tree.setCurrentKey(this.groupId); - this.$emit('click', this.groupId); + this.$nextTick(() => { + this.$refs.tree.setCurrentKey(this.groupId); + this.$emit('click', this.groupId); + }) } }) }, diff --git a/test-ui/src/views/test/api/index.vue b/test-ui/src/views/test/api/index.vue index 30d0abe..e1a90a6 100644 --- a/test-ui/src/views/test/api/index.vue +++ b/test-ui/src/views/test/api/index.vue @@ -1,5 +1,5 @@