Browse Source

对添加楼层时,根据code过滤掉待删除的后新数组中会出现undefined项的问题进行修正

niuheng 3 years ago
parent
commit
ce649c71ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/ready/buildfloor/formItems.vue

+ 1 - 1
src/components/ready/buildfloor/formItems.vue

@@ -205,7 +205,7 @@ export default {
             default:
               return item;
           }
-        });
+        }).filter(_c=>{return !!_c;});
         this.InforsList = arr;
       });
     },