fix: processVariablesStr参数转string错误问题

This commit is contained in:
smallNorthLee
2025-02-25 22:44:33 +08:00
parent 303bbbdd7f
commit d7664c92cd

View File

@ -167,7 +167,7 @@ watch(
// 加载最新的审批详情
getApprovalDetail({
id: props.selectProcessDefinition.id,
processVariablesStr: newValue.value // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
processVariablesStr: JSON.stringify(newValue.value) // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
})
}
},
@ -183,7 +183,7 @@ const getApprovalDetail = async (row: any) => {
const data = await ProcessInstanceApi.getApprovalDetail({
processDefinitionId: row.id,
activityId: NodeId.START_USER_NODE_ID,
processVariablesStr: JSON.stringify(row.processVariablesStr) // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
processVariablesStr: row.processVariablesStr // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
})
if (!data) {