diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 8030b453..2b58d6b6 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -116,8 +116,8 @@ techStack: sensorsConfig._techStack }); - if ('@CurUser?.UserId' && sensors.login) { - sensors.login('@CurUser.UserId'); + if ('@CurUser?.OaAccount' && sensors.login) { + sensors.login('@CurUser.OaAccount'); sensors.setProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' }); } @@ -125,7 +125,7 @@ (function () { try { var diag = { - uid: '@CurUser?.UserId' || 'NULL', + uid: '@CurUser?.OaAccount' || 'NULL', platform: sensorsConfig._platformType || 'onederiv', ua: (navigator.userAgent || '').substring(0, 50) || 'NULL', url: location.href