Skip to content

Commit d7664c9

Browse files
committed
fix: processVariablesStr参数转string错误问题
1 parent 303bbbd commit d7664c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ watch(
167167
// 加载最新的审批详情
168168
getApprovalDetail({
169169
id: props.selectProcessDefinition.id,
170-
processVariablesStr: newValue.value // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
170+
processVariablesStr: JSON.stringify(newValue.value) // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
171171
})
172172
}
173173
},
@@ -183,7 +183,7 @@ const getApprovalDetail = async (row: any) => {
183183
const data = await ProcessInstanceApi.getApprovalDetail({
184184
processDefinitionId: row.id,
185185
activityId: NodeId.START_USER_NODE_ID,
186-
processVariablesStr: JSON.stringify(row.processVariablesStr) // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
186+
processVariablesStr: row.processVariablesStr // 解决 GET 无法传递对象的问题,后端 String 再转 JSON
187187
})
188188
189189
if (!data) {

0 commit comments

Comments
 (0)