diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java index b07adf5..ac98550 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java @@ -143,7 +143,7 @@ public class ExpprojectController { public Result add(@RequestBody ExpprojectPage expprojectPage) { Expproject expproject = new Expproject(); BeanUtils.copyProperties(expprojectPage, expproject); - if (!expprojectPage.getExpandproList().isEmpty()) { + if ( expprojectPage.getExpandproList() != null && !expprojectPage.getExpandproList().isEmpty()) { if (expproject.getNeedexp() >= expprojectPage.getExpandproList().size()) { expprojectService.saveMain(expproject, expprojectPage.getExpandproList()); return Result.OK("添加成功!"); diff --git a/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue index b867049..b04e097 100644 --- a/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue +++ b/jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue @@ -9,12 +9,12 @@ - + - + @@ -126,6 +126,8 @@