ソースを参照

设备台账 修复获取车间列表时未校验父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;
         });