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