mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix: 无法查看已归档任务
This commit is contained in:
parent
7e98a78333
commit
b7b933c89d
@ -157,6 +157,7 @@ export default {
|
||||
},
|
||||
on: {
|
||||
'click': () => {
|
||||
this.$store.state.taskArchiveView = params.row.id
|
||||
this.$store.dispatch("openTask", params.row);
|
||||
}
|
||||
},
|
||||
|
||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -1288,7 +1288,7 @@ export default {
|
||||
forgetTask({state, dispatch}, task_id) {
|
||||
$A.execMainDispatch("forgetTask", task_id)
|
||||
//
|
||||
const ids = $A.isArray(task_id) ? task_id : [task_id];
|
||||
const ids = ($A.isArray(task_id) ? task_id : [task_id]).filter(id => id != state.taskArchiveView);
|
||||
const parent_ids = [];
|
||||
const project_ids = [];
|
||||
ids.some(id => {
|
||||
|
||||
1
resources/assets/js/store/state.js
vendored
1
resources/assets/js/store/state.js
vendored
@ -112,6 +112,7 @@ export default {
|
||||
taskFiles: [],
|
||||
taskLogs: [],
|
||||
taskOperation: {},
|
||||
taskArchiveView: 0,
|
||||
|
||||
// 任务等待状态
|
||||
taskOneLoad: {},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user