perf: 优化项目面板

This commit is contained in:
kuaifan 2024-12-14 18:46:34 +08:00
parent da7e832f21
commit 8cbae629a5
2 changed files with 3 additions and 2 deletions

View File

@ -1720,11 +1720,12 @@ export default {
if (currentVisible === originalVisible) { if (currentVisible === originalVisible) {
continue; continue;
} }
const firstVisible = this.taskVisibility[taskId] === undefined && currentVisible;
this.$set(this.taskVisibility, taskId, { this.$set(this.taskVisibility, taskId, {
visible: currentVisible, visible: currentVisible,
height: taskRect.height height: taskRect.height
}); });
if (currentVisible) { if (firstVisible) {
await this.$nextTick(); await this.$nextTick();
} }
} }

@ -1 +1 @@
Subproject commit 0e1939dec7e93aa07a0b65acfabfd14820f9422a Subproject commit 4aa3f987edb5704f3caab4a8ea3c258590ae72f9