From fb3b97fd30b963fc5f85bf7872fdb026d119b056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=98=B1=E6=B6=B5?= Date: Wed, 12 Feb 2025 14:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-ui/src/components/FolderPage/index.vue | 8 +++++--- test-ui/src/views/test/api/index.vue | 4 ++-- test-ui/src/views/test/case/index.vue | 20 ++++++++++++++++++-- 3 files changed, 25 insertions(+), 7 deletions(-) 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 @@