Commit ef79ef280794634f7822c33bd911ef97d30b1bcb
Merge branch 'saveupdate2'
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/employeeConfig.js
| @@ -214,7 +214,7 @@ angular.module('ScheduleApp').controller('EmployeeConfigFormCtrl', ['EmployeeCon | @@ -214,7 +214,7 @@ angular.module('ScheduleApp').controller('EmployeeConfigFormCtrl', ['EmployeeCon | ||
| 214 | console.log(self.employeeConfigForSave); | 214 | console.log(self.employeeConfigForSave); |
| 215 | 215 | ||
| 216 | // 如果自对象没id值,设置成null | 216 | // 如果自对象没id值,设置成null |
| 217 | - if (!self.employeeConfigForSave.spy.id) { | 217 | + if (self.employeeConfigForSave.spy && !self.employeeConfigForSave.spy.id) { |
| 218 | self.employeeConfigForSave.spy = null; | 218 | self.employeeConfigForSave.spy = null; |
| 219 | } | 219 | } |
| 220 | 220 |