mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +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',
|
url: 'project/task/remove',
|
||||||
data,
|
data,
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
|
state.taskArchiveView = 0;
|
||||||
dispatch("forgetTask", data.task_id)
|
dispatch("forgetTask", data.task_id)
|
||||||
resolve(result)
|
resolve(result)
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
@ -1830,10 +1831,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
task_id = task.id;
|
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;
|
state.taskId = task_id;
|
||||||
if (task_id > 0) {
|
if (task_id > 0) {
|
||||||
dispatch("getTaskOne", {
|
dispatch("getTaskOne", {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user