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