fix(#I1FEC1): 修复用户维护页面更新显示名称不同步问题

#Comment
comment #I1FEC1

#Issue
close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1FEC1
This commit is contained in:
Argo Zhang 2020-04-24 14:45:27 +08:00
parent 004e591076
commit 045b5861e7
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ $(function () {
}
},
callback: function (data) {
if (data && data.success && data.oper === 'save' && data.data.UserName === $('#userDisplayName').attr('data-userName')) {
$('.username').text(data.data.DisplayName);
if (data && data.success && data.oper === 'save' && data.data[0].UserName === $('#userDisplayName').attr('data-userName')) {
$('.username').text(data.data[0].DisplayName);
}
if (data && data.oper === 'create') {
$('#userName').prop('readonly', false).removeClass("ignore");