Commit 2842af2c84870e7617bf03e5f2303fa07afcf111
Merge branch 'saveupdate2' into minhang
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 | 214 | console.log(self.employeeConfigForSave); |
| 215 | 215 | |
| 216 | 216 | // 如果自对象没id值,设置成null |
| 217 | - if (!self.employeeConfigForSave.spy.id) { | |
| 217 | + if (self.employeeConfigForSave.spy && !self.employeeConfigForSave.spy.id) { | |
| 218 | 218 | self.employeeConfigForSave.spy = null; |
| 219 | 219 | } |
| 220 | 220 | ... | ... |