From 8ea43f30afa7276accaf41151adc5c0c54a5fd22 Mon Sep 17 00:00:00 2001 From: Lesan <1960681385@qq.com> Date: Wed, 4 Dec 2024 15:49:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9B=AA=E8=8A=B1id=E5=AF=BC=E8=87=B4in?= =?UTF-8?q?t=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../package/penal/task/task-components/UserTask.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue index 3def6a28..ecd6fbf4 100644 --- a/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue +++ b/src/components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue @@ -175,7 +175,11 @@ const resetTaskForm = () => { // 特殊:流程表达式,只有一个 input 输入框 userTaskForm.value.candidateParam = [candidateParamStr] } else { - userTaskForm.value.candidateParam = candidateParamStr.split(',').map((item) => item) + userTaskForm.value.candidateParam = candidateParamStr.split(',').map((item) => { + // 如果数字超出了最大安全整数范围,则将其作为字符串处理 + let num = Number(item) + return num > Number.MAX_SAFE_INTEGER || num < -Number.MAX_SAFE_INTEGER ? item : num + }) } } else { userTaskForm.value.candidateParam = []