diff --git a/Bootstrap.Admin/wwwroot/js/profiles.js b/Bootstrap.Admin/wwwroot/js/profiles.js index fbe66d1d..ab631fc7 100644 --- a/Bootstrap.Admin/wwwroot/js/profiles.js +++ b/Bootstrap.Admin/wwwroot/js/profiles.js @@ -90,7 +90,7 @@ url: Profiles.url, method: "put", data: data, title: "修改用户显示名称", callback: function (result) { if (result) { - $('#userDisplayName, .nav-header .username').text(data.DisplayName); + $('.username').text(data.DisplayName); } } }); diff --git a/Bootstrap.Admin/wwwroot/js/users.js b/Bootstrap.Admin/wwwroot/js/users.js index 2a20437e..23e1b2c0 100644 --- a/Bootstrap.Admin/wwwroot/js/users.js +++ b/Bootstrap.Admin/wwwroot/js/users.js @@ -75,7 +75,7 @@ $(function () { }, callback: function (data) { if (data && data.success && data.oper === 'save' && data.data.UserName === $('#userDisplayName').attr('data-userName')) { - $('#userDisplayName, .nav-header .username').text(data.data.DisplayName); + $('.username').text(data.data.DisplayName); } if (data && data.oper === 'create') { $('#userName').prop('readonly', false).removeClass("ignore");