From dd567b32d550f5d8c97c48813871b86cd28a54d3 Mon Sep 17 00:00:00 2001 From: "zheng.zhang" Date: Thu, 30 Apr 2026 14:36:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E7=A5=9E=E7=AD=96?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BB=A3=E7=A0=81=E6=89=A7=E8=A1=8C=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Views/Shared/_MainLayout.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' });