From e4a2441f503aed6c86f343cc4eaee398b26590ed Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 7 May 2025 09:24:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:ueky=E6=8B=94=E5=87=BA=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/index.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index b3dd6652..6e9f7df5 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -432,10 +432,15 @@ // 清除定时器 clearInterval(ukeyCheckInterval); // 显示警告通知 - //$.modal.alertWarning("UKey设备未插入", function () { - // 跳转到登出页面 - location.href = ctx + 'logout'; - //}); + layer.confirm("检测到UKey已拔出,系统将自动退出", { + icon: 0, + title: "安全提示", + btn: ['确认'], + offset: ['30%'] + }, function (index) { + location.href = ctx + 'logout'; + layer.close(index); + }); } }, 10000); // 每10秒检查一次 }