修改BUG:前面提交的框架更改使保存当前用户信息后右上角显示名称不同步

This commit is contained in:
Argo-Lenovo 2016-11-17 16:36:53 +08:00
parent 5a642e6727
commit ae0be5afb1
1 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,8 @@
ID: "userID", ID: "userID",
UserName: "userName", UserName: "userName",
Password: "password", Password: "password",
DisplayName: "displayName" DisplayName: "displayName",
NewPassword: "confirm"
} }
}), }),
click: { click: {
@ -48,9 +49,9 @@
} }
}] }]
}, },
success: function (src, data) { callback: function (data) {
if (src === 'save' && data.ID === $('#userId').val()) { if (data && data.success && data.oper === 'save' && data.data.ID === $('#userId').val()) {
$('#userDisplayName').text(data.DisplayName); $('#userDisplayName').text(data.data.DisplayName);
} }
} }
}); });