mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 13:22:49 +00:00
fix: 打不开已归档任务的情况
This commit is contained in:
parent
0ba161f4c5
commit
459bce93c1
5
resources/assets/js/store/actions.js
vendored
5
resources/assets/js/store/actions.js
vendored
@ -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", {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user