diff --git a/src/utils/dict.ts b/src/utils/dict.ts index e6e9386d..424d627b 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -52,7 +52,9 @@ export function getDictOptions(dictType: string, valueType?: 'string' | 'number' ? `${dict.value}` : valueType === 'boolean' ? `${dict.value}` === 'true' - : Number.parseInt(`${dict.value}`), + : valueType === 'number' && !isNaN(parseFloat(`${dict.value}`)) + ? Number.parseInt(`${dict.value}`) + : dict.value, }) }) }