From 045b5861e7099645655fe88d1b05c1e9b2a22c46 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 24 Apr 2020 14:45:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(#I1FEC1):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=BB=B4=E6=8A=A4=E9=A1=B5=E9=9D=A2=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=90=8D=E7=A7=B0=E4=B8=8D=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment comment #I1FEC1 #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1FEC1 --- src/admin/Bootstrap.Admin/wwwroot/js/users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/wwwroot/js/users.js b/src/admin/Bootstrap.Admin/wwwroot/js/users.js index 3b7ad2c3..a583b35e 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/js/users.js +++ b/src/admin/Bootstrap.Admin/wwwroot/js/users.js @@ -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");