fix: 雪花id导致int精度丢失

pull/610/head
Lesan 2024-12-04 15:49:58 +08:00
parent abdaf2e0ca
commit 8ea43f30af
1 changed files with 5 additions and 1 deletions

View File

@ -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 = []