Commit 08dc4e9e410adb20ca0cf9bb884a9dfb419b49b1
Merge branch 'master' of http://222.66.0.204:8090/panzhaov5/bsth_control.git
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 | ... | ... |