mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-21 08:28:12 +00:00
refactor(chat-input): 简化任务搜索逻辑
移除项目 ID 筛选条件,统一使用 scope: 'all_project' 搜索所有项目的任务。
This commit is contained in:
parent
c8c27e808f
commit
70be6619e9
@ -2586,16 +2586,14 @@ export default {
|
||||
if (this.taskSearchKey !== searchKey) {
|
||||
return;
|
||||
}
|
||||
const projectId = this.getProjectId();
|
||||
const data = (await this.$store.dispatch("call", {
|
||||
url: 'project/task/lists',
|
||||
data: {
|
||||
keys: {
|
||||
name: searchKey,
|
||||
},
|
||||
project_id: projectId > 0 ? projectId : undefined,
|
||||
parent_id: -1,
|
||||
scope: projectId > 0 ? undefined : 'all_project',
|
||||
scope: 'all_project',
|
||||
pagesize: 50,
|
||||
},
|
||||
}).catch(_ => {}))?.data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user