From 56fa41189734cd8ac82a62b40649be801569a500 Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Thu, 28 Jul 2022 18:21:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=94=E5=9B=9E=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E6=9C=AA=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- components/Roles/Roles.vue | 1 - pages/project/project.vue | 23 ++--------------------- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef5062c..d9ea2a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 1.0.0 (2022-07-26) +# 1.0.0 (2022-07-28) ### 🌟 新功能 范围|描述|commitId @@ -46,6 +46,7 @@ - | 切换时间轴模式按钮变小 | [f8a333d](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/f8a333d) - | 日历页首页 | [561c8e6](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/561c8e6) - | 日历页添加 | [1b46a91](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/1b46a91) + - | 删除无用代码 | [e075321](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/e075321) - | 删除项目 | [f43d4ba](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/f43d4ba) - | 上传新项目结果提示 | [2625734](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/2625734) - | 设置项目域名 | [1a835f1](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/1a835f1) diff --git a/components/Roles/Roles.vue b/components/Roles/Roles.vue index b552e16..48dd7cb 100644 --- a/components/Roles/Roles.vue +++ b/components/Roles/Roles.vue @@ -64,7 +64,6 @@ const remindData = computed(() => store.state.socket.remindData); // 小红点 const currLocationTaskId = computed(() => store.state.socket.currLocationTaskId); // 前需要定位到的任务id watch(visibleRoles, () => { - console.log('角色列表更新') if (remindData.value && visibleRoles.value) { visibleRoles.value.forEach(role => { role.remindNum = 0; diff --git a/pages/project/project.vue b/pages/project/project.vue index 3511d78..e306448 100644 --- a/pages/project/project.vue +++ b/pages/project/project.vue @@ -78,7 +78,8 @@ if (!userInfo.value) { onUnmounted(() => { console.log('卸载组件实例后调用'); clearTasksData(); - store.commit('socket/setCurrLocationTaskId', ''); + store.commit('role/setRoleId', ''); // 清除角色id + store.commit('socket/setCurrLocationTaskId', ''); // 清除点击的任务id }); watch(remindData, () => { @@ -199,26 +200,6 @@ watch(timeNode, newValue => { } }); -/** - * 当收到打开新项目消息状态时 - * 重新根据时间和角色查询普通日常任务 - * 永久日常任务不发生改变 - */ -// watch(newProjectInfo, newValue => { -// if (newValue && newValue.value.projectId && newValue.value.url) { -// uni.$u.route('/', { -// u: userId.value, -// p: newValue.value.projectId, -// url: newValue.value.url, -// }); -// clearTasksData(); -// store.commit('role/setRoleId', ''); -// const options = uni.$route.query; - -// initHook.init(options); -// } -// }); - watch(globals, () => { // 添加到allTasks里 const index = visibleRoles.value.findIndex(role => role.id === roleId.value);