From 8cbae629a570829e832ec17a49212be7d4319785 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 14 Dec 2024 18:46:34 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/components/ProjectPanel.vue | 3 ++- resources/mobile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ProjectPanel.vue b/resources/assets/js/pages/manage/components/ProjectPanel.vue index 6cdfd032e..84a3731bd 100644 --- a/resources/assets/js/pages/manage/components/ProjectPanel.vue +++ b/resources/assets/js/pages/manage/components/ProjectPanel.vue @@ -1720,11 +1720,12 @@ export default { if (currentVisible === originalVisible) { continue; } + const firstVisible = this.taskVisibility[taskId] === undefined && currentVisible; this.$set(this.taskVisibility, taskId, { visible: currentVisible, height: taskRect.height }); - if (currentVisible) { + if (firstVisible) { await this.$nextTick(); } } diff --git a/resources/mobile b/resources/mobile index 0e1939dec..4aa3f987e 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit 0e1939dec7e93aa07a0b65acfabfd14820f9422a +Subproject commit 4aa3f987edb5704f3caab4a8ea3c258590ae72f9