From 87669010e34c7ca574a7d4b73b49f1bf986e607d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 11 Jul 2023 13:59:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=81=BF=E5=85=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E5=85=B3=E9=97=AD=E4=BB=BB=E5=8A=A1=E7=AA=97?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/store/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index d3cb63500..9b3ea69ee 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -1779,8 +1779,10 @@ 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", {