mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-13 18:54:22 +00:00
fix: skip loading related tasks for subtasks to prevent request spam
This commit is contained in:
parent
17fd7f02a6
commit
203d107d68
@ -1563,6 +1563,10 @@ export default {
|
||||
this.relatedTasks = [];
|
||||
return;
|
||||
}
|
||||
if (this.isSubTask) {
|
||||
this.relatedTasks = [];
|
||||
return;
|
||||
}
|
||||
const cacheMap = this.$store.state.taskRelatedCache || {};
|
||||
const cached = cacheMap[this.taskId];
|
||||
if (cached?.list) {
|
||||
@ -1597,6 +1601,9 @@ export default {
|
||||
if (!taskId || taskId !== this.taskId) {
|
||||
return;
|
||||
}
|
||||
if (this.isSubTask) {
|
||||
return;
|
||||
}
|
||||
this.loadRelatedTasks();
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user