From 459bce93c1946ecd9f00d3707a22cd8d42705e67 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 5 Aug 2023 12:41:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E4=B8=8D=E5=BC=80=E5=B7=B2?= =?UTF-8?q?=E5=BD=92=E6=A1=A3=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/store/actions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index 9f8df5ceb..ac0f5203b 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -1674,6 +1674,7 @@ export default { url: 'project/task/remove', data, }).then(result => { + state.taskArchiveView = 0; dispatch("forgetTask", data.task_id) resolve(result) }).catch(e => { @@ -1830,10 +1831,8 @@ export default { } else { task_id = task.id; } - state.taskArchiveView = task.deleted_at === null && task.archived_at !== null ? task_id : 0; - } else { - state.taskArchiveView = 0; } + state.taskArchiveView = task_id; state.taskId = task_id; if (task_id > 0) { dispatch("getTaskOne", {