From 1c230193343cc32372828d915102eed99b5f7a49 Mon Sep 17 00:00:00 2001 From: song Date: Thu, 16 Sep 2021 10:16:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=B6=E9=97=B4=E8=BD=B4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=BB=9A=E5=8A=A8=E5=88=B0=E5=AF=B9=E5=BA=94=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- src/pages/project/project.vue | 15 +++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 958ecda..9e98eea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2021-09-14) +# 0.1.0 (2021-09-16) ### 🌟 新功能 范围|描述|commitId @@ -126,6 +126,7 @@ - | 修改时间轴定期任务加载逻辑 | [1977c00](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/1977c00) - | 修改角色栏组件 | [a54c601](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/a54c601) - | 修改项目详情页返回首页bug | [e942887](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/e942887) + - | 全局任务点击时保存角色id到本地 | [e1a17c5](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/e1a17c5) - | 分享项目链接 | [d867239](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/d867239) - | 切换到默认项目角色没有激活状态的bug | [438d448](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/438d448) - | 切换日历时查询小红点 | [7091789](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/7091789) diff --git a/src/pages/project/project.vue b/src/pages/project/project.vue index d288038..b3158c8 100644 --- a/src/pages/project/project.vue +++ b/src/pages/project/project.vue @@ -29,7 +29,7 @@ export default { computed: { ...mapState('user', ['user', 'token']), ...mapState('role', ['visibleRoles', 'roleId']), - ...mapState('task', ['timeNode', 'timeUnit', 'tasks', 'regularTask', 'newProjectInfo']), + ...mapState('task', ['timeNode', 'timeUnit', 'tasks', 'regularTask', 'newProjectInfo', 'showSkeleton']), ...mapState('project', ['project']), ...mapGetters('task', ['timeGranularity']), ...mapGetters('project', ['projectId']), @@ -119,10 +119,17 @@ export default { async initPlanTasks() { this.setPrevPlaceholderTasks(); // 向上加载空数据 this.setNextPlaceholderTasks(); // 向下加载空数据 - this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); // 滚动到对应位置 - + // // this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); // 滚动到对应位置 await this.getInitTasks(); // 获取初始数据 - this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); // 滚动到对应位置 + + // 滚动到对应位置 + let timer = null; + timer = setInterval(() => { + if (!this.showSkeleton) { + clearInterval(timer); + this.$nextTick(() => this.$refs.timeLine.setScrollPosition()); + } + }, 1000); }, // 切换了 颗粒度 || 角色时候 获取初始定期任务