fix(hrm): 解决流程实例任务查询中的空值错误

- 添加了对 instId 参数的空值检查
- 当 instId 为空或 null 时返回空数组避免请求错误
- 防止因参数缺失导致的接口调用失败
This commit is contained in:
2026-07-07 15:14:59 +08:00
parent 2f5c205ec3
commit 037b1a0678

View File

@@ -250,6 +250,9 @@ export function listHistoryFlowTask(query) {
* 查询实例对应的所有审批任务
*/
export function listAssignTask (instId) {
if (instId == null || instId === '') {
return Promise.resolve({ data: [] })
}
return request({
url: `/hrm/flow/instance/tasks/${instId}`,
method: 'get'