From b69f94fcc83e61e55e5e72e4b305b88ef0f4aef3 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Fri, 30 Jul 2021 17:03:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(roles):=20=E4=BF=AE=E5=A4=8D=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=98=AF=E6=88=91=E7=9A=84?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因为后台返回的mine字段是字符串的 前端当数字进行处理了, 此版本进行了更正 --- CHANGELOG.md | 1 + src/pages/project/project.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5104c9..9f5523e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ ### 🐛 Bug 修复 范围|描述|commitId --|--|-- + ID1000343 | 解决向下预加载查询参数时间没+1颗粒度;以及滚动加载颗粒度写死的问题 | 940603a, closes #ID1000343 plugin | 插件解析机制完善 | 0f5a27d project title | 项目标题修改; 切换角色移除script | 5c20017 role | 切换角色的逻辑修正完善 | 4ae534f diff --git a/src/pages/project/project.vue b/src/pages/project/project.vue index 5cfd295..de24b74 100644 --- a/src/pages/project/project.vue +++ b/src/pages/project/project.vue @@ -133,7 +133,7 @@ export default { // 设置 初始显示角色信息 setInitialRoleId(visibleList) { - const index = visibleList.findIndex(item => item.mine); + const index = visibleList.findIndex(item => item.mine === '1'); const currentRole = index > 0 ? visibleList[index] : visibleList[0]; const currentRoleId = currentRole ? currentRole.id : ''; this.setRoleId(currentRoleId);