diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 6e254660..07b5b054 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -113,14 +113,14 @@ show_log: false }); - sensors.quick('autoTrack'); - sensors.registerPage({ platform_type: sensorsConfig._platformType || 'onederiv', systemVersion: sensorsConfig._systemVersion, techStack: sensorsConfig._techStack }); + sensors.quick('autoTrack'); + if ('@CurUser?.OaAccount' && sensors.login) { sensors.login('@CurUser.OaAccount'); sensors.setProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' });