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秒检查一次 }