From 68ae0ef98568539e6907169722af4afdefb32e84 Mon Sep 17 00:00:00 2001 From: "zheng.zhang" Date: Wed, 29 Apr 2026 18:08:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=8D=9A=E7=9D=BF?= =?UTF-8?q?=E5=92=8C=E7=A5=9E=E7=AD=96=E7=9A=84=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=8A=E6=8A=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Views/Shared/_MainLayout.cshtml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/YLErpWeb/Views/Shared/_MainLayout.cshtml b/YLErpWeb/Views/Shared/_MainLayout.cshtml index 4a9d6388..8030b453 100644 --- a/YLErpWeb/Views/Shared/_MainLayout.cshtml +++ b/YLErpWeb/Views/Shared/_MainLayout.cshtml @@ -45,10 +45,10 @@ } window.BonreeAgent.BonreeStart(config); window.bonreeApplyUser = function (userId, userName) { - if (!userId || !window.BonreeAgent) return; - window.BonreeAgent.setUserID(userId); + if (!userId || !window.bonreeJsBridge) return; + window.bonreeJsBridge.setUserID(userId); if (userName) { - window.BonreeAgent.setExtraInfo({ name: userName }); + window.bonreeJsBridge.setUserExtraInfo({ name: userName }); } }; @@ -118,7 +118,7 @@ if ('@CurUser?.UserId' && sensors.login) { sensors.login('@CurUser.UserId'); - sensors.setOnceProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' }); + sensors.setProfile({ userId: '@CurUser.OaAccount', name: '@CurUser.UserName' }); } // 神策诊断日志(精简版)