perf: 优化项目面板

This commit is contained in:
kuaifan
2024-12-14 18:51:46 +08:00
parent da7e832f21
commit 8cbae629a5
2 changed files with 3 additions and 2 deletions
@@ -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();
}
}