소스 검색

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

yusheng 9 달 전
부모
커밋
874236cfdd
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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;
         });