Browse Source

修复request请求返回的值中有0的情况,值不正确

main
dark 3 months ago
parent
commit
af5fbee052
  1. 2
      src/components/r-form/utils/index.tsx

2
src/components/r-form/utils/index.tsx

@ -72,7 +72,7 @@ export const transformAntdTableProColumns = (columns: ProColumns[], overwriteCol
return { return {
title: i.label || i[label || 'name'], title: i.label || i[label || 'name'],
label: i.label || i[label || 'name'], label: i.label || i[label || 'name'],
value: i.value || i[value || 'id'],
value: i.value ?? i[value || 'id'],
disabled, disabled,
data: i data: i
} }

Loading…
Cancel
Save