Browse Source

fix: 10345、10562

100011797 2 years atrás
parent
commit
8b7f56781c
1 changed files with 1 additions and 1 deletions
  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) {
       const data = {};
       formData.table.forEach((d: any) => {
-        if (d.value) {
+        if (d.value !== undefined) {
           if (d.type === 'date') {
             data[d.id] = moment(d.value).format(d.format || 'YYYY-MM-DD HH:mm:ss');
           } else if (d.type === 'object') {