Explorar el Código

fix: 10345、10562

100011797 hace 2 años
padre
commit
8b7f56781c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/pages/device/Instance/Detail/Functions/form.tsx

+ 1 - 1
src/pages/device/Instance/Detail/Functions/form.tsx

@@ -219,7 +219,7 @@ export default (props: FunctionProps) => {
     if (id && formData.table) {
     if (id && formData.table) {
       const data = {};
       const data = {};
       formData.table.forEach((d: any) => {
       formData.table.forEach((d: any) => {
-        if (d.value) {
+        if (d.value !== undefined) {
           if (d.type === 'date') {
           if (d.type === 'date') {
             data[d.id] = moment(d.value).format(d.format || 'YYYY-MM-DD HH:mm:ss');
             data[d.id] = moment(d.value).format(d.format || 'YYYY-MM-DD HH:mm:ss');
           } else if (d.type === 'object') {
           } else if (d.type === 'object') {