Explorar o código

设备台账 修复获取车间列表时未校验父ID的问题

yusheng hai 9 meses
pai
achega
874236cfdd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/views/ledgerAssets/components/businessInformation.vue

+ 3 - 0
src/views/ledgerAssets/components/businessInformation.vue

@@ -433,6 +433,9 @@
       },
       // 获取车间
       getListWorkshopByParentId(id) {
+        if (!id) {
+          return;
+        }
         listWorkshopByParentId(id).then((res) => {
           this.workshopOptions = res;
         });