fix(hrm): 解决流程实例任务查询中的空值错误
- 添加了对 instId 参数的空值检查 - 当 instId 为空或 null 时返回空数组避免请求错误 - 防止因参数缺失导致的接口调用失败
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user