fix: 移动端审批发起添加默认筛选条件 (#1576)

Reviewed-on: daoyoucloud/tachybase#1576
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-09-27 17:04:35 +08:00 committed by bai.zixv
parent c85a0f1677
commit 4d619cffe5

View File

@ -24,7 +24,23 @@ export const InitiationsItem = observer((props) => {
url: 'workflows:list',
params: {
pageSize: 9999,
filter: { ...params?.[tabKey] },
filter: {
$and: [
{
type: {
$eq: 'approval',
},
},
{
enabled: {
$eq: true,
},
},
{
...params?.[tabKey],
},
],
},
sort: 'createdAt',
},
})