fix: 无法查看已归档任务

This commit is contained in:
kuaifan 2023-03-30 15:07:45 +08:00
parent 7e98a78333
commit b7b933c89d
3 changed files with 3 additions and 1 deletions

View File

@ -157,6 +157,7 @@ export default {
},
on: {
'click': () => {
this.$store.state.taskArchiveView = params.row.id
this.$store.dispatch("openTask", params.row);
}
},

View File

@ -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 => {

View File

@ -112,6 +112,7 @@ export default {
taskFiles: [],
taskLogs: [],
taskOperation: {},
taskArchiveView: 0,
// 任务等待状态
taskOneLoad: {},