From 7f7c2ad186b118a87993d3bcd49e4fb3e28dfc66 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 23 九月 2024 17:18:35 +0800 Subject: [PATCH] Update HDLCommon.cs --- HDL_ON/Common/HDLCommon.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 601e1a7..6e58228 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -546,11 +546,19 @@ } //鏈櫥褰曚笉鐢ㄥ鐞� - if (!UserInfo.Current.IsLogin) return; - - //璐﹀彿鍦ㄥ埆澶勭櫥闄嗭紝琚涪涓嬬嚎 璺宠浆鍒扮櫥褰曢〉闈� - new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); - + //if (!UserInfo.Current.IsLogin) return; + try + { + Application.RunOnMainThread(() => + { + //璐﹀彿鍦ㄥ埆澶勭櫥闄嗭紝琚涪涓嬬嚎 璺宠浆鍒扮櫥褰曢〉闈� + new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show(); + }); + } + catch (Exception ex) + { + MainPage.Log("Error", $"鎸や笅绾挎彁绀虹獥鍙e紓甯革細{ex.StackTrace}"); + } try { Logout(); -- Gitblit v1.8.0