fix: 打不开已归档任务的情况

This commit is contained in:
kuaifan 2023-08-05 12:41:39 +08:00
parent 0ba161f4c5
commit 459bce93c1

View File

@ -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", {