From 732d41db11178358f04026092f1671a8833e618f Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Fri, 12 Apr 2024 19:31:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=AE=AD=E5=A4=B4=E7=9A=84=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/task.ts | 2 +- src/views/task/aside/TaskList.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/task.ts b/src/store/modules/task.ts index f66b80c..658dccd 100644 --- a/src/store/modules/task.ts +++ b/src/store/modules/task.ts @@ -49,7 +49,7 @@ export const useTaskStore = defineStore({ back() { if (this.currentIndex === 0) return - + this.setActive(--this.currentIndex) }, async fetchApprovalList(pagination) { diff --git a/src/views/task/aside/TaskList.vue b/src/views/task/aside/TaskList.vue index 0e5eb93..acb1bba 100644 --- a/src/views/task/aside/TaskList.vue +++ b/src/views/task/aside/TaskList.vue @@ -76,7 +76,7 @@ async function fetchList() { watch( () => taskStore.activeId, (newVal) => { - // activeId.value = newVal + activeId.value = newVal }, )