From a3474f81650fc8aff2973c51d65f2c5f50b6994d Mon Sep 17 00:00:00 2001 From: song Date: Wed, 18 Aug 2021 11:50:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BD=B4=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8=E5=88=B0=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/pages/project/project.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9636235..b930d9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -161,6 +161,7 @@ ### 🚀 性能优化 范围|描述|commitId --|--|-- + - | 1.时间轴筛选相同的时间替换数据 2.整理代码 | [e082ccb](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/e082ccb) - | 修改代码格式 | [14123d7](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/14123d7) - | 修改定期任务骨架屏高度 | [909a734](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/909a734) - | 插件查询及展示 | [4dba770](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/4dba770) diff --git a/src/pages/project/project.vue b/src/pages/project/project.vue index 9086a26..bd7e511 100644 --- a/src/pages/project/project.vue +++ b/src/pages/project/project.vue @@ -149,9 +149,6 @@ export default { // 向下加载空数据 this.setNextTasks(); await this.getInitTasks(); - setTimeout(() => { - this.$refs.child.setScrollPosition(); - }, 2000); }, // 切换了 颗粒度 || 角色时候 获取初始定期任务 @@ -242,6 +239,9 @@ export default { } const initData = this.setTime(sTime, true); this.setUpTasks(initData); + this.$nextTick(() => { + this.$refs.child.setScrollPosition(); + }); }, // 设置时间轴向下的空数据